[R] color plot

Guido Masarotto guido at hal.stat.unipd.it
Tue Jul 20 11:37:45 CEST 1999


On Tue, Jul 20, 1999 at 09:29:10AM +0200, Alessandro Magni wrote:
> newbie question:
> anytime I try something like...
> plot(a[1],a[3],type="l",color="red"), or lines(a[1],a[3],type="l",color="red") ...
> I get:
>             Warning: parameter "color" couldn't be set in high-level plot()
> function
> 
> How do I get color line plots?
> 

  > plot(rnorm(100),type="l",col="red")

  or
  
  > par(col="red")
  > plot(rnorm(100),type="l")

  Try
  > ?par
  to see the 'setable' graphics parameter (including col, bg (bacground color),
  and col.axis,...).

  g.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list