Dear List,
plot.gam appears to be having trouble communicating its xlab and ylab
information to termplot. A simple example:
library(mgcv)
x = 1:1000
y = runif(1000)*x^.5
z = rnorm(1000)*y
other = sin(z)
fit = gam(y~s(x)+s(z)+other)
plot(fit,all.terms=TRUE)
plot(fit,select=3,xlab="???")
dev.copy2pdf(file = "This.pdf.needs.proper.labels.pdf", height = 8,
width = 8)
Any ideas for workarounds?
Many thanks as always,
Andrew
[mgcv][gam] Problem defining axis labels for non-smooth terms (via termplot)
2 messages · Andrew Crane-Droesch, Simon Wood
plot(fit,all.terms=TRUE,select=3,xlabs="???")
On 20/12/12 02:06, Andrew Crane-Droesch wrote:
Dear List,
plot.gam appears to be having trouble communicating its xlab and ylab
information to termplot. A simple example:
library(mgcv)
x = 1:1000
y = runif(1000)*x^.5
z = rnorm(1000)*y
other = sin(z)
fit = gam(y~s(x)+s(z)+other)
plot(fit,all.terms=TRUE)
plot(fit,select=3,xlab="???")
dev.copy2pdf(file = "This.pdf.needs.proper.labels.pdf", height = 8,
width = 8)
Any ideas for workarounds?
Many thanks as always,
Andrew
Simon Wood, Mathematical Science, University of Bath BA2 7AY UK +44 (0)1225 386603 http://people.bath.ac.uk/sw283