[R-sig-Geo] Plot variogramm in multi figure environment

Tom Gottfried tom.gottfried at tum.de
Wed Mar 14 12:18:59 CET 2012


Hi,

the plot method for gstatVariogram is build on lattice, which is not compatible with base graphics 
functionality such as `par(mfrow=c(2,2))'.

I think you could use `print(plot(cd30.vario))' and with some extra arguments to print you should be 
able to set up a multi figure environment as with `par(mfrow=c(2,2))'. Have a look at ?print.trellis.

HTH,
Tom

Am 14.03.2012 11:47, schrieb Thomas Hoffmann:
> Dear all,
>
>
> I calculated  variogramms and tried to plot them in a multi-figure environment. However, only the last plot appears in a single plot:
>
> cd30.vario = variogram(c30~1, gw.cal)
> cd30.v.fit = fit.variogram(cd30.vario, vgm(0.01,"Sph",800,0.1))
>
> cc30.vario = variogram(toc30~1, gw.cal)
> cc30.v.fit = fit.variogram(cc30.vario, vgm(0.1,"Sph",1000,0.6))
>
>
> par(mfrow=c(2,2))
> plot(cc30.vario,cc30.v.fit)
> abline(h=0.1,v=800)
> plot(cf30.vario,cf30.v.fit)
>
> Does anbody no way, and how to solve the problem
>
> Kind regards
> Thomas
>

-- 
Technische Universität München
Department für Pflanzenwissenschaften
Lehrstuhl für Grünlandlehre
Alte Akademie 12
85350 Freising / Germany
Phone: ++49 (0)8161 715324
Fax:   ++49 (0)8161 713243
email: tom.gottfried at wzw.tum.de
http://www.wzw.tum.de/gruenland



More information about the R-sig-Geo mailing list