search for: panvar

Displaying 1 result from an estimated 1 matches for "panvar".

Did you mean: anvar
2009 Dec 02
2
lattice: adding information on number of observations
Dear R-users, I am using R version 2.9.1 and lattice 0.17-26 under windows. In a lattice boxplot, I would like to add information on how many observations each singel boxplot is based upon. For example (the basic plot): # Begin R-code library(lattice) dat <- data.frame(panvar = rep(c("A","B","A","B"), c(3,7,4,6)), grp = rep(c("grp1", "grp2"), c(10,10)), val = rnorm(20)) dat bwplot(val ~ grp | panvar, data = dat) # End R-code As in my real life data the number of observations in each subgroup will be quite diff...