[R] Problem with contour plot

Berthold Kramm berthold.kramm at epost.de
Mon Sep 8 17:39:06 CEST 2003

Using the code below (based on 'Modern Applied Statistics with S (4th 
Edition)from Venables,Ripley) for a 2*2 contour (plus color) plot, the 
top left contour plot is distorted in the sense that the contour plot is 
compressed in x-direction, while the axis and the contour plot in 
y-direction display correctly.
Any idea how to fix this anomaly ?

Best wishes,

par(mfrow = c(2,2), pty ="s")

topo.ls <- surf.ls(3,RALV,RARV,PP)
trsurf <- trmat(topo.ls,80,160,80,160,100)
contour(trsurf, lty="solid", add=TRUE)

topo.ls <- (replication of the same block as above 3 times with 
different variables) ...

More information about the R-help mailing list