Trafim,

If you are plotting more than one variables on the same plot e.g. by using
the lines() or points() function, then the limits of the X and Y axes are
set based on the first variable you plot. So, you would have to set the xlim
and ylim to the limits of the variable with the widest range, otherwise you
would sometimes see some data left out.

-- 
View this message in context: 
http://n4.nabble.com/Histogram-and-Density-on-the-the-same-graph-tp931182p931236.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to