Try factor(vec2) in your bwplot() call.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ernesto Jardim
Sent: Friday, July 09, 2004 9:41 AM
To: Mailing List R
Subject: [R] Problem with bwplot
Hi,
I'm ploting some box-and-whisker plots with bwplot but I'm
Do you want this?
bwplot(as.factor(vec2) ~ vec1 | as.factor(vec3))
Ernesto Jardim wrote:
I'm ploting some box-and-whisker plots with bwplot but I'm not getting
any box-and-whiskers ... just dots.
I'm using lattice 0.9-16 with R 1.9.1.
Try
library(lattice)
rnorm(60)-vec1
rep(1:3,20)-vec2
Yes,
It works.
Thanks
EJ
PS: It's inconsistent with boxplot, which works without making vec2 a
factor.
On Fri, 2004-07-09 at 17:36, Austin, Matt wrote:
Try factor(vec2) in your bwplot() call.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
On Friday 09 July 2004 12:05, Ernesto Jardim wrote:
Yes,
It works.
Thanks
EJ
PS: It's inconsistent with boxplot, which works without making vec2 a
factor.
Yes, and that's a design decision. In particular, it's controlled by the
horizontal argument in panel.bwplot, which comes into
From: Ernesto Jardim
Yes,
It works.
Thanks
EJ
PS: It's inconsistent with boxplot, which works without making vec2 a
factor.
I think the problem is in the flexibility of bwplot. If `horizontal' is not
set explicitly, it tries to guess by testing whether `y' or `x' is factor.
It