[R] plot, graphic

Paul Menzel paulepanter at users.sourceforge.net
Fri Jul 29 21:54:03 CEST 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110729/051128e3/attachment.bin>


More information about the R-help mailing list