Dear List, I am plotting lmList objects using plot(intervals()) in nlme package. I want to make changes to the y-axis labels. When I try to change cex of y-axis labels using the following: fm1 <- lmList(distance ~ age | Subject, Orthodont) plot(intervals(fm1), scales=list(y=list(cex = .7))) I receive: Error in bwplot(formula = group ~ intervals | what, data = structure(list( : formal argument "scales" matched by multiple actual arguments I have searched the documentation on Trellis and Lattice but can't seem to figure this out. Any help would be greatly appreciated. Thank you, Bill Dieterich
changes to y-axis labels in lmList intervals plot
2 messages · William Dieterich, Deepayan Sarkar
On Saturday 01 May 2004 17:08, William Dieterich wrote:
Dear List, I am plotting lmList objects using plot(intervals()) in nlme package. I want to make changes to the y-axis labels. When I try to change cex of y-axis labels using the following: fm1 <- lmList(distance ~ age | Subject, Orthodont) plot(intervals(fm1), scales=list(y=list(cex = .7))) I receive: Error in bwplot(formula = group ~ intervals | what, data = structure(list( : formal argument "scales" matched by multiple actual arguments
As the error message suggests, the plot method supplies its own scales argument, which conflicts with the one you give. The only way out that I can think of (short of making changes to the plot method) is changing the global settings:
lset(list(axis.text = list(cex = .7))) plot(intervals(fm1))
Unfortunately, this would change the x-axis cex as well. If you don't want to make the change globally, and you are using R 1.9.0, you could also do
plot(intervals(fm1),
+ par.settings = list(axis.text = list(cex = .7))) which has the effect of attaching the settings to the trellis object, and using them for the duration of the plotting. HTH, Deepayan