Skip to content

surface plots using wireframe, color at high res, grid at low res?

2 messages · Patrick Joyce, Duncan Mackay

1 day later
#
Hi Patrick

You should do better by using a specific graphic device and then send 
the file to the printer

...
n.cuts=300
u1.corrd=(1:n.cuts-.5)/n.cuts
u2.corrd=(1:n.cuts-.5)/n.cuts
shareframe=data.frame(expand.grid(u1.corrd,u2.corrd))
shareframe$z.dir=normal.copula(shareframe$Var1,shareframe$Var2,rho.boat)
names(shareframe)=c("u1.dir","u2.dir","z.dir")

trellis.device(device = postscript,
                file = "copula1.ps",
                title = "",
                colormodel = "srgb")

wireframe(shareframe$z.dir~ shareframe$u1.dir*shareframe$u2.dir,
   scales = list(arrows=FALSE,col=1),
   drape = c(TRUE),
   par.settings=list(axis.line=list(col="transparent")),
   col="transparent",
   colorkey = FALSE,
   paper = "special",
   horizontal = "FALSE",
   height = 18,
   width =18,
   screen = list(z = 195,y=180, x = 105),
   col.regions = census.color.function((1:10000-.5)/10000),
   xlab = expression(U[1]), ylab = expression(U[2]), zlab="Density",main=" "
   )

dev.off()

see ?trellis.device and ?Devices

You will have to modify the arguments to suit the graph and your device.
If you use a device like png use a high resolution value

HTH

Duncan


Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au
At 07:55 6/07/2013, you wrote: