Dear Simon,

Am Freitag, den 29.07.2011, 12:32 -0700 schrieb Crock:

> i`m trying to use the plot function to show more variable-funktions in one
> graphic. so for example i would like to show Chinas Income in different
> sectors in one graphic. obviousely typing plot(ChinaIncome) the graphics are
> split and there is one graphic for agriculture, one for industry.... i would
> like to put them togheter in one graphic, maybe with different colors for
> every function, doesn`t matter. 
> would be nice if someone could help me. thanks a lot for taking care about
> it.

please read `?plot`, `?plot.default` and `?plot.function` as starters.
Take a look at the examples and go on from there.

You can for example add lines or curves using `curve(x**2, add = TRUE)`.

        > x = c(1:10)
        > plot(x)
        > curve(x**2, add = TRUE)


Thanks,

Paul

Attachment: signature.asc
Description: This is a digitally signed message part

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to