P+geom_vline(data=mu, aes(xintercept=grp.mean, color=sex), Geom_histogram(position="identity", alpha=0.5) P<-ggplot(df, aes(x=weight, fill=sex, color=sex)) + Ggplot(df, aes(x=weight, fill=sex, color=sex)) + Histogram plot fill colors can be automatically controlled by the levels of sex : # Change histogram plot fill colors by groups Read more on ggplot2 colors here : ggplot2 colors P + scale_color_grey() + theme_classic() +
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |