Created
May 23, 2014 20:01
-
-
Save ramnathv/ad957c254fad7670a8b1 to your computer and use it in GitHub Desktop.
Morris Barchart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
haireye = as.data.frame(HairEyeColor) | |
dat = subset(haireye, Sex == "Female") | |
p2 <- mPlot(Freq ~ Eye, | |
group = "Hair", | |
data = dat, | |
type = "Bar", | |
labels = levels(dat$Hair) | |
) | |
p2$set( | |
barColors = c('black', 'brown', 'red', '#FAF0BE') | |
) | |
p2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment