[R] contourplot, xyplot, aspect ratio, mfrow

About this list Date view Thread view Subject view Author view Attachment view

From: Patrick Giraudoux (patrick.giraudoux@univ-fcomte.fr)
Date: Sun 02 May 2004 - 18:30:39 EST

Message-id: <001201c4301f$cdacf480$a249fb51@PC728329681112>


I am gradually moving from the classical R plot functions to the library Lattice

I have some questions about contourplot () and its arguments:

1/ I am working on geographical coordinates which makes necessary that the X (longitude) and Y (latitude) units be represented with
the same distance on screen. This was obtained in the classical R plots with plot.default(x,y, asp=1,...) and then contour(...,
add=T). When I try aspect=1 with contour plot, I get a square but not at all the aspect ratio I wish: 1 unit on X = one unit on Y =
the same distance on screen. What goes wrong?

2/ I would also be capable to project points and symbols on a contourplot (the equivalent of points() and symbols() after plot() and
contour()), but can hardly guess from the help how to manage with.

3/ I would also appreciate to manage the equivalent of par(mfrow=c(2,2)) -or any other numbers of screens- and have a "Trellis" plot
in each of the sub-screens. It seems that contourplot does not comply with and ignore the above parameters. Right or wrong? If so,
which approach can solve this problem?

Thanks in advance for any hint,

Patrick Giraudoux

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:07 EST