--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
test.df <- expand.grid(S=c("a", "b"), C=c("c", "d"), F=c("f", "g"))
test.df$X <- 1:8
test.df$Y <- 1:8
p <- ggplot(test.df, aes(x=X, y=Y))
p + geom_point(aes(fill=F)) # does not work because points are solid,
cannot see the fill color
p + geom_point(aes(fill=F), shape=21) # works
p + geom_point(aes(fill=F, color=C), shape=21) # works
p + geom_point(aes(fill=F, shape=S)) # does not work Error in if
(!is.null(data$fill) && !all(is.na(data$fill)) && data$shape == :
missing value where TRUE/FALSE needed. Bug?
Session info in case Hadley agrees that this is a bug:
sessionInfo()
R version 2.11.1 (2010-05-31)
i686-pc-linux-gnu
locale:
[1] LC_CTYPE=en_US.ISO-8859-1 LC_NUMERIC=C
[3] LC_TIME=en_US.ISO-8859-1 LC_COLLATE=en_US.ISO-8859-1
[5] LC_MONETARY=C LC_MESSAGES=en_US.ISO-8859-1
[7] LC_PAPER=en_US.ISO-8859-1 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.ISO-8859-1 LC_IDENTIFICATION=C
attached base packages:
[1] grid stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] ggplot2_0.8.8 proto_0.3-8 reshape_0.8.3 plyr_1.2.1
loaded via a namespace (and not attached):
[1] digest_0.4.2 tools_2.11.1
Best,
Ista
> More options: http://groups.google.com/group/ggplot2
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org