Entering edit mode
12 months ago
andre.arrudalima
▴
60
I'm willing to do a histogram with boxplot bar in ggplot2. I already have a well functioning code for a jitter graph, which give me colors for each variable.
ggplot(Raiz, aes(x = G, y = T,
color = c('WT', 'at5g01950')[2 - (as.numeric(G) %% 2)])) +
geom_jitter(position = position_jitter(width = 0.2), alpha = 1, size =2) +
geom_boxplot(width = 0.5, color = "black", alpha = 0.2,
position = position_dodge(0.9)) +
theme_minimal() +
theme(plot.background = element_rect(fill = "white") ,
panel.grid.minor = element_blank()) +
labs(color = '')
And this is the kind of result that I want, but done in R and with the designated colors
Thank you very much!
Why did you delete the post?