[R] plotting two histograms on one plot with hist function
John Kane
jrkrideau at inbox.com
Tue Jun 26 18:02:57 CEST 2012
Why not just plot the two histograms on the same scale in a 2 panel plot?
John Kane
Kingston ON Canada
> -----Original Message-----
> From: mblig at sun.ac.za
> Sent: Tue, 26 Jun 2012 15:24:55 +0200
> To: r-help at 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() 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. Is there any way that I can use the hist() to plot two data sets
> similar to the barplot(). Any help or advice will be appreciated!
>
> Kind regards,
> Marguerite
>
>
>
>
>
> ________________________________
> E-pos vrywaringsklousule
>
> Hierdie e-pos mag vertroulike inligting bevat en mag regtens
> geprivilegeerd wees en is slegs bedoel vir die persoon aan wie dit
> geadresseer is. Indien u nie die bedoelde ontvanger is nie, word u
> hiermee in kennis gestel dat u hierdie dokument geensins mag gebruik,
> versprei of kopieer nie. Stel ook asseblief die sender onmiddellik per
> telefoon in kennis en vee die e-pos uit. Die Universiteit aanvaar nie
> aanspreeklikheid vir enige skade, verlies of uitgawe wat voortspruit uit
> hierdie e-pos en/of die oopmaak van enige l?ers aangeheg by hierdie e-pos
> nie.
>
> E-mail disclaimer
>
> This e-mail may contain confidential information and may...{{dropped:11}}
>
> ______________________________________________
> 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.
____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails
More information about the R-help
mailing list