The following is a plot that used to work (last December, I think with
a patched version of ggplot2 from Hadley), but has stopped working
with recent updates. Other instances of facet_grid work and the data
look normal to me. Since I have no idea what caused the error
message, I'm having trouble producing a reproducible example or
solving the problem. Has anyone seen this before?
Many thanks,
Jacob Etches
> p <- qplot(year,prop.excl,data=subset(excl,!is.na(ftf) &
exclusion %in%
c("disab_inc_rec","family_death","fs_ch","ft2_ch","retir_inc_rec")),
geom=c("line"), colour=Exclusion,
ylab="Proportion of persons per exposure year",xlab="Start
year
of exposure window")
> p+ facet_grid(ftf + Sex ~ Age)
Error in rbind(c("spacer", "strip_h", "strip_h",
"strip_h",
"strip_h", :
number of columns of matrices must match (see arg 2)
In addition: Warning message:
In rbind(list(1, 1, 1, 1, 1, 1), list(0.77705, 1, 1, 1, 1,
0.545041666666667, :
number of columns of result is not a multiple of vector length (arg
1)
[[alternative HTML version deleted]]