Skip to content

Instantly share code, notes, and snippets.

@ramnathv
Created May 23, 2014 20:01
Show Gist options
  • Save ramnathv/ad957c254fad7670a8b1 to your computer and use it in GitHub Desktop.
Save ramnathv/ad957c254fad7670a8b1 to your computer and use it in GitHub Desktop.
Morris Barchart
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