I'd like to plot y vs x according to the third variable "group" which has three levels. I am wondering how can I put the three plots in one graph? Thank you ____________________________________________________________________________________ (http://groups.yahoo.com)
See ?points and ?lines for adding new groups of points or lines to an existing graph created by plot. -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Li Zhang Sent: Friday, November 03, 2006 9:55 PM To: R-help at stat.math.ethz.ch Subject: [R] multiple plots in the same graph I'd like to plot y vs x according to the third variable "group" which has three levels. I am wondering how can I put the three plots in one graph? Thank you ____________________________________________________________________________ ________ (http://groups.yahoo.com) ______________________________________________ R-help at stat.math.ethz.ch 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.
Li, What type of plot? A profile plot would be interaction.plot(factor1,factor2,y) Jeff -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Li Zhang Sent: Friday, November 03, 2006 9:55 PM To: R-help at stat.math.ethz.ch Subject: [R] multiple plots in the same graph I'd like to plot y vs x according to the third variable "group" which has three levels. I am wondering how can I put the three plots in one graph? Thank you ____________________________________________________________________________ ________ (http://groups.yahoo.com) ______________________________________________ R-help at stat.math.ethz.ch 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.
Reasonably Related Threads
- How to plot 2 continous variables on double y-axis with 2 factors: ggplot2, gplot, lattice, sciplot?
- (Grouped + Stacked) Barplot
- Ggplot2: Moving legend, change fill and removal of space between plots when using grid.arrange() possible use of facet_grid?
- Plotting hourly time-series data loaded from file using plot.ts
- Correcting for missing data combinations