Dan, with base graphics, the> plot command determines the ylim, >lines can
only add lines/points to an exisiting graph, it cannot modify the existing
ylim.
You have two choices. 1) Before proceeding to the graph, determine which of
the two data sets has the greater range and call >plot with that
Hi,
Why, when I run the script below, is my y-axis range command being ignored?
I.e., the y axis graphed consistently fits the line specified in the plot
command, but never fits the line I'm trying to add in the subsequent line
command.
This is my first R script, so if I'm doing anything else wac
Hi Dan,
I think it's because lines() is meant for you to add lines to a plot. Hence
it does not make R redraw the plot. If you wish to set the limits of the
y-axis (or x-axis for that matter), you should do it in the plot function
call, and then call lines() without the "ylim=ry" part. So your fi
3 matches
Mail list logo