[R] plot problem
daniil.ivanov at gmail.com
Mon Aug 21 00:53:07 CEST 2006
Ok, what is wrong with a following code:
# remove all the present objects
rm(list = ls())
# load the libraries we need
vgm1 <- variogram(log(zinc)~1, ~x+y, meuse)
it plots nothing
but from the R console
gives me a plot.
On 8/21/06, Daniil Ivanov <daniil.ivanov at gmail.com> wrote:
> Ok, thanks to all.
> Problem was with class of variogram
> > class(vgm1)
>  "gstatVariogram" "data.frame"
> If I fix it manually to
> class(vgm1) <- "gstatVariogram"
> everything runs as it should.
> Thanks, Daniil.
More information about the R-help