Displaying 1 result from an estimated 1 matches for "patientp".
Did you mean:
patient
2006 Sep 11
1
graphics: y limit on xyplot
...error:
[1] 990
Error in extend.limits(limitlist[[i]], axs = axs) :
improper length of lim
I get the same error if I use ylim.
library(lattice)
trellis.device(col = FALSE, theme = lattice.getOption("col.whitebg"))
name <- "Variable name"
symbols <- c(1,2,3,4,5,6,7,8,9)
patientp <- c(1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9)
varp <-
c(826,119,168,90,572,323,122,10,42,900,250,180,120,650,400,130,12,33)
visitp <- c(1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3)
yall <- c(varp,varl,varm,varh)
ylimit <- max(yall)*1.1
xyplot(varp ~ visitp,
xlab = "Visit",...