Re: [R] plot.window arguments being ignored?

2009-11-08 Thread Bryan Hanson
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

[R] plot.window arguments being ignored?

2009-11-08 Thread ARRRRR_user
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

Re: [R] plot.window arguments being ignored?

2009-11-07 Thread Viknesh
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