[R] axis range problem
wsi at gcal.ac.uk
Wed Jul 18 10:44:44 CEST 2001
plot() is producing plots whose y-axis range is much larger than the range
of the data. This happens when I plot a subset of the data.
The dataset I am using is pretty big: length(x) is 107008. When I do
the plot uses a y-axis whose range is range(y) instead of the range of y
values plotted (corresponding to xlim).
I fix this by adding the argument
ylim=range(y[x>=min(xrange) & x<=max(xrange)])
It seems to me that this would be a more sensible default behaviour.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help