Re: [R] Background Colors

2011-10-11 Thread Gabriel Yospin
Thanks for the help, Carlos and Jean. What y'all sent worked beautifully. Ultimately I chose to use the rect() function. Below is my functional code (with a legend thrown in for good measure): plot(x = c(1,numYears), y = c(200,300), main = c("Successional Trajectories for ",startState," Over Time

Re: [R] Background Colors

2011-10-11 Thread Jean V Adams
Carlos Ortega wrote on 10/11/2011 11:30:46 AM: > > Hi, > > Yes, one way to do that is by using function polygon(). > > Regards, > Carlos Ortega > www.qualityexcellence.es > > 2011/10/11 Gabriel Yospin > > > Hi R-Help - > > > > If I make a plot: > > > > numYears = 500 > > plot(x = c(1,numYears

Re: [R] Background Colors

2011-10-11 Thread Carlos Ortega
Hi, Yes, one way to do that is by using function polygon(). Regards, Carlos Ortega www.qualityexcellence.es 2011/10/11 Gabriel Yospin > Hi R-Help - > > If I make a plot: > > numYears = 500 > plot(x = c(1,numYears), y = c(200,300), xlab = "Time", ylab = "Vegetation > Class", xlim = c(100,600),

[R] Background Colors

2011-10-11 Thread Gabriel Yospin
Hi R-Help - If I make a plot: numYears = 500 plot(x = c(1,numYears), y = c(200,300), xlab = "Time", ylab = "Vegetation Class", xlim = c(100,600), ylim = c(200,300), type="n") Is there a way to make different parts of the background for the plot different colors? For example, I'd like to have th