[R] One quick question concerning R

Henrique Dallazuanna wwwhsd at gmail.com
Sun Mar 2 00:42:15 CET 2008


x <- rnorm(10)
y <- runif(10)
z <- 1:10

plot(x~z, ylim=range(x, y), type='l')
lines(y, col='red')




On 01/03/2008, Marc Diamond <marc.d.diamond at gmail.com> wrote:
> Just started using 'R'. Nice system. Once quick question: Is it possible to
> put plot more than one series against a common 'x variable on the same plot?
> In otherwords, I may want a stacked bar chart of line chart containing more
> than one series. Could not figure out how to do this.
>
> Thanks for your help.
>
> Marc Diamond
> Aviation-Software, Inc.
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list