Skip to content
Back to formatted view

Raw Message

Message-ID: <1263578141114-1015105.post@n4.nabble.com>
Date: 2010-01-15T17:55:41Z
From: Dieter Menne
Subject: panel.bpplot
In-Reply-To: <1263575278518-1015050.post@n4.nabble.com>

netrunner wrote:
> 
> I am a newbie in R. I would like to use the panel.bpplot function on my
> data set but I have some problems. Can this function work on matrix? My
> data set have some NaN and when I run panel.bpplot function it returns
> error due to the presence of NaN. How Can I solve this?
> 
> 

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)

-- 
View this message in context: http://n4.nabble.com/panel-bpplot-tp1015050p1015105.html
Sent from the R help mailing list archive at Nabble.com.