-Original Message-
From: mb...@sun.ac.za
Sent: Wed, 27 Jun 2012 08:32:24 +0200
To: jrkrid...@inbox.com, ke...@math.montana.edu
Subject: RE: [R] plotting two histograms on one plot with hist function
Thank you for all the advice! After mailing the question, I actually
legend("topleft", c("Dataset 1","Data set 2"), cex=0.6,bty="n",
fill=c("Red","Green"))
Thanks again for the help!
From: John Kane [mailto:jrkrid...@inbox.com]
Sent: 26 June 2012 23:27
To: ilai
Cc: Blignaut, M, Mej ; r-help@r-pr
> From: [2]mb...@sun.ac.za
> Sent: Tue, 26 Jun 2012 15:24:55 +0200
> To: [3]r-help@r-project.org
> Subject: [R] plotting two histograms on one plot with hist function
>
> I would like to plot two data sets (frequency (y-axis) of mean values
e, 26 Jun 2012 15:24:55 +0200
> > To: r-help@r-project.org
> > Subject: [R] plotting two histograms on one plot with hist function
> >
> > I would like to plot two data sets (frequency (y-axis) of mean values for
> > 0-1(x=axis)) on a single histogram for comparison. The hist()
Why not just plot the two histograms on the same scale in a 2 panel plot?
John Kane
Kingston ON Canada
> -Original Message-
> From: mb...@sun.ac.za
> Sent: Tue, 26 Jun 2012 15:24:55 +0200
> To: r-help@r-project.org
> Subject: [R] plotting two histograms on one plot wit
I would like to plot two data sets (frequency (y-axis) of mean values for
0-1(x=axis)) on a single histogram for comparison. The hist() only allow the
overlay of two histograms, and although barplot() allows beside=TRUE, it does
not show frequency values (like hist) but rather all of the values.
6 matches
Mail list logo