[R] Odp: Plot help

Petr PIKAL petr.pikal at precheza.cz
Fri Mar 5 10:34:53 CET 2010


r-help-bounces at r-project.org napsal dne 04.03.2010 19:24:13:

> Is there an easy way to do two things:
> I have a dataframe with headers and 18 columns
> I want to plot all the columns on same y axis plot(df) does this.

No. If df is data frame you shall get pairs plot.

> 1. There is no legend, the legend function seems pedantic - surely there
> must be an easy way to just pick up my headers?


What is wrong with names(df)

> 2. How do I vary the colours. By default they repeat quite frequently 
and I
> have lots of red lines etc.

?plot and its parameter col


> Moon
> -- 
> View this message in context: 
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list