On 02/22/2011 03:31 AM, Schmidt, Lindsey C (MU-Student) wrote:
What is plot.new? and how can i get it to work so i can load other data?

Hi Lindsey,
It looks to me as though spelling mistakes in your code are causing failures to generate some of the objects that you then pass to "plot". The plot command fails because it can't find one of the objects. When you then ask for an enhancement to the plot that doesn't exist, you get the "plot.new" error. For instance:

# something wrong with the creation of "hullpoly"
> hullpoly=as.points(u[h],v[h])
...
Error in xy.coords(x, y) : object 'hullpolly' not found

# this fails to create "new.v" (should be "runif")
> new.v=ruinf(50,-10,10)
Error: could not find function "ruinf"

When you have a string of plot commands that depend upon the creation of some initial variable, if that variable doesn't get created, they will all fail, setting you up for the "plot.new" error which is complaining about the absence of one or more plots that weren't displayed in the first place.

Jim

______________________________________________
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.

Reply via email to