Skip to content
Prev 206458 / 398503 Next

panel.bpplot

netrunner wrote:
You should never use panel.bpplot directly, but rather in a bwplot()
function. See the examples coming with the documentation in package Hmisc.
Used correctly, it has no problem with NA. In general, one would use it with
a data.frame, because grouping is often a factor.

If this does not solve your problem, please repost with a modification of
the sample below that shows the problem.

Dieter


library(Hmisc)
set.seed(13)
data = data.frame(x =rnorm(1000), g <- sample(1:6, 1000, replace=TRUE))
bwplot(g ~ x, panel=panel.bpplot, data=data)
# Add NA
data$x[1:3] = NA
data$x[data$g==6]  = NA
bwplot(g ~ x, panel=panel.bpplot, data=data)