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]]
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
Hi, Not sure about what you want your plot to look like, but you should also look at 'matplot'. Best, Elizabeth Marc Diamond 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. >