Skip to content

fill only working for geom_boxplots if fill variable is the same length as x variable #286

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cldougl opened this issue Oct 1, 2015 · 0 comments

Comments

@cldougl
Copy link
Member

cldougl commented Oct 1, 2015

>dat <- data.frame(cond = factor(rep(c("A","B","C","D"), each=200)), col = factor(rep(c("C1","C2"), each=400)), rating = c(rnorm(200),rnorm(200, mean=.8),rnorm(200, mean=.4), rnorm(200, mean=.2)))
>ggplot(dat, aes(x=cond, y=rating)) + geom_boxplot(outlier.shape = NA, aes(fill=col))

from r:
rplot
shows up in plotly as
rating-vs-cond

>dat <- data.frame(cond = factor(rep(c("A","B","C","D"), each=200)), col = factor(rep(c("C1","C2","C3","C4"), each=200)), rating = c(rnorm(200),rnorm(200, mean=.8),rnorm(200, mean=.4), rnorm(200, mean=.2)))
>ggplot(dat, aes(x=cond, y=rating)) + geom_boxplot(outlier.shape = NA, aes(fill=col))

but 4 colors will work in plotly for this chart
rating-vs-cond 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant