Skip to content

Several gstat variograms on a single page

3 messages · Edzer Pebesma, Michal Gallay, Steven J. Pierce

#
Michal,

I think (and hope for you) it is not necessary to search the solution at 
the level of grid. The plot function for variograms in package gstat is 
a rather (?) thin wrapper around xyplot, so if you carefully read how to 
control the main and sub arguments of ?xyplot, then you're done:

library(gstat)
data(meuse)
coordinates(meuse)=~x+y
v = variogram(log(zinc)~1,meuse)
v.pl = plot(v, main="log-zinc",sub=list(label = "xx", cex=.5))

Next you can print the v.pl etc. objects side by side using print(v.pl, 
more = TRUE) etc.
--
Edzer
Michal Gallay wrote:
#
Thank you Edzer,

you're right, the layout I wanted to get can be produced just using simple 
'graphics' functions. I've already 'discovered' how to do it.

At this stage, I find Lattice and Grid graphics too complex. The biggest 
problem is to understand how particular features of a lattice/grid plot are 
controlled. However, step by step, I am getting there.

Best wishes,

Michal
On May 3 2007, Edzer J. Pebesma wrote:

            

  
    
#
Michal,

The best source I've found for understanding how to work with the graphics
capabilities in R is a recently published book:

Murrell, Paul (2006). R Graphics. Boca Raton, FL: Chapman & Hall/CRC. 
http://www.amazon.com/Graphics-Computer-Science-Data-Analysis/dp/158488486X/
ref=pd_bbs_sr_1/103-4142948-9887845?ie=UTF8&s=books&qid=1178315019&sr=8-1


Steven J. Pierce, M.S.
Doctoral Student in Ecological/Community Psychology
Department of Psychology
Michigan State University
240B Psychology Building
East Lansing, MI 48824-1116

E-mail: pierces1 at msu.edu
Web: http://www.psychology.msu.edu/eco/


-----Original Message-----
From: Michal Gallay [mailto:mgallay01 at Queens-Belfast.AC.UK] 
Sent: Thursday, May 03, 2007 6:06 PM
To: Edzer J. Pebesma
Cc: R geo forum; Michal Gallay
Subject: Re: [R-sig-Geo] Several gstat variograms on a single page

Thank you Edzer,

you're right, the layout I wanted to get can be produced just using simple
'graphics' functions. I've already 'discovered' how to do it.

At this stage, I find Lattice and Grid graphics too complex. The biggest
problem is to understand how particular features of a lattice/grid plot are
controlled. However, step by step, I am getting there.

Best wishes,

Michal
On May 3 2007, Edzer J. Pebesma wrote:

            
done:
variogram(g)
variogram(g)
variogram(g)
--
Michal Gallay

Postgraduate Research Student
School of Geography, Archaeology and Palaeoecology Queen's University
Belfast BT7 1NN Northern Ireland

Tel: +44(0)2890 273929
Fax: +44(0)2890 973212
email: mgallay01 at qub.ac.uk
www: www.qub.ac.uk/geog