Re: [R] plot function

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Fri, 20 Jun 2008 07:06:40 -0400

On 20/06/2008 4:09 AM, Norbert NEUWIRTH wrote:
> dear userRs,
>
> I am deeply ashamed asking you this very basic question, but I did neither get it online nor by the S/R-literature I have.
>
> I simply want to plot the values of a COUPLE of vectors within one graph - in concrete a couple of time series, a couple of distributions and some stacked area graphs. I am higly convinced, that there are dozens of solutions. Could you please recommend me one?

x <- 1:1000
y1 <- rnorm(1000)
y2 <- rexp(1000)
ylim <- range(c(y1,y2))
plot(x, y1, col="blue", ylim = ylim)
points(x, y2, col="red")

Duncan Murdoch



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. Received on Fri 20 Jun 2008 - 11:12:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 22 Jun 2008 - 01:30:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive