[R] Adding line plot to a barplot
Greg.Snow at imail.org
Mon Feb 1 19:15:26 CET 2010
Instead of using par(new=T), use the lines function instead of plot to add to an existing plot.
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Nadine Kilsby
> Sent: Sunday, January 31, 2010 11:41 PM
> To: r-help at r-project.org
> Subject: [R] Adding line plot to a barplot
> I am trying to add a line plot of barplot, and while the following
> for some reason the y axis' do not align (the 0s are not in the same
> position). Is this because I am trying to overlay plot on barplot, and
> there any way around this?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help