[R] Help in Overlaying of 2 Plots on the same Device.
Uwe Ligges
ligges at statistik.uni-dortmund.de
Fri Jan 14 17:51:39 CET 2005
Jagarlamudi, Choudary wrote:
> I'm trying to overlay a density plot on a previously plotted histogram. However, i need to use the same axis as of the 1st(histogram) plot to plot the second. My second plot is creating its own axis and causing my plot to extend the entire histogram instead of getting a subplot on a portion of the histogram. I tried 'fig' and 'new' parameters with no luck.
You could add the density using lines(), after setting the argument ylim
for the histogram.
Uwe Ligges
> Thanks in advance.
>
> Choudary Jagarlamudi
> Instructor
> Southwestern Oklahoma State University
> STF 254
> 100 campus Drive
> Weatherford OK 73096
> Tel 580-774-7136
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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
More information about the R-help
mailing list