Closed bjjefferies closed 3 months ago
I have scoured the forums and can't seem to figure out why I keep getting this error after I try to run code chunks for base R plotting.
If I run the following:
plot.new()
plot.window(xlim = c(1900, 2012), # Specify x-axis limits ylim = c(ave.so.min, ave.so.max)) # Specify y-axis limits
points(x = year, y = ave.so, col = "gray85", # Color pch = 16, # Shape cex = 0.75) # Size
and always get the following error:
Error in plot.xy(xy.coords(x, y), type = type, ...) : plot.new has not been called yet
I can get it to plot with code like this:
plot(x = year, y = ave.so, col = 'gray85', pch = 16, cex = 0.75, xlim = c(1900, 2012), ylim = c(ave.so.min, ave.so.max))
But then I can't add more arguments for the axis and other parameters.
Thanks in advance for any help you may be able to offer.
I have scoured the forums and can't seem to figure out why I keep getting this error after I try to run code chunks for base R plotting.
If I run the following:
plot.new()
plot.window(xlim = c(1900, 2012), # Specify x-axis limits ylim = c(ave.so.min, ave.so.max)) # Specify y-axis limits
points(x = year, y = ave.so, col = "gray85", # Color pch = 16, # Shape cex = 0.75) # Size
and always get the following error:
Error in plot.xy(xy.coords(x, y), type = type, ...) : plot.new has not been called yet
I can get it to plot with code like this:
plot(x = year, y = ave.so, col = 'gray85', pch = 16, cex = 0.75, xlim = c(1900, 2012), ylim = c(ave.so.min, ave.so.max))
But then I can't add more arguments for the axis and other parameters.
Thanks in advance for any help you may be able to offer.