Displaying 2 results from an estimated 2 matches for "fakedf".
Did you mean:
faked
2005 Apr 08
1
subset arg lmList
I'm having trouble understanding how functions in the subset argument for
lmList search for the objects they need. This trivial example produces
"Error in rownames(fakedf) : Object "fakedf" not found":
library(nlme)
fitbyID <- function() {
fakedf <- data.frame(ID = gl(5, 10, 50),
A = sample(1:100, 50),
B = rnorm(50))
mycoefs <- lmList(B ~ A | ID,
data = fakedf,...
2005 Apr 07
2
newline in lattice axis label
...ave a 3 panel xyplot with different variables in the y axis. I'm trying
to insert a newline after "Width (cm)," in the ylab argument as in the
example below. My goal is to have the y axis label broken into two lines,
split after the string just mentioned.
plotfun <- function() {
fakedf <- data.frame(A = sample(1:100, 50),
B = rnorm(50),
C = rnorm(50),
D = rnorm(50))
myplot <- xyplot(B + C + D ~ A, data = fakedf,
outer = TRUE, allow.multiple = TRUE, layout = c(1,3),
y...