Ok, what is wrong with a following code: # remove all the present objects rm(list = ls())
# load the libraries we need library(gstat) data(meuse) vgm1 <- variogram(log(zinc)~1, ~x+y, meuse) plot(vgm1) dev.copy2eps(file="fig2.eps",horizontal=T) dev.off() it plots nothing but from the R console plot(vgm1) gives me a plot. Thanks, Daniil. On 8/21/06, Daniil Ivanov <[EMAIL PROTECTED]> wrote: > Hi, > > Ok, thanks to all. > Problem was with class of variogram > > > class(vgm1) > [1] "gstatVariogram" "data.frame" > > If I fix it manually to > > class(vgm1) <- "gstatVariogram" > > everything runs as it should. > > Thanks, Daniil. ______________________________________________ [email protected] 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.
