Displaying 1 result from an estimated 1 matches for "globecdata".
Did you mean:
globaldata
2007 Jun 29
0
modify tick labels in 3D GAM plot
...e text( )
function. The tick labels on the x-axis need adjustment to the right
and those on the y-axis need adjustment to the left.
Here is the code:
library(mgcv)
gam.from.mgcv<-gam(response ~ s(var1) + s(var2, var3) + s(var4) +
offset(var5),
family=poisson, scale=-1, gamma=1.4, data=globecdata)
par(mfrow=c(1,3))
par(cex=1, xpd=NA)
plot(gam.from.mgcv, select=2, pers=T, theta=-65, phi=20, scale=0,
xlab="\n\n\nLongitude", ylab="\n\nLatitude", main="",
ticktype="detailed", expand=0.8)
par(srt=100, adj=0.5) #angle and alignment to set for z...