I plot only hist(y,freq = FALSE) lines(density(y))
and the graph of density goes higher then hist, but i didn't find any lim parameter for y axes for lines command. Thanks a lot On Mon, Nov 30, 2009 at 1:51 PM, Hrishi Mittal <hrishimit...@gmail.com>wrote: > > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.