data("HairEyeColor")
mosaic(HairEyeColor, shade = TRUE)
Are there arguments I can use to change the labels on the margins of the resulting plot above? For instance, I'd like to change "Male" to "M", "Female" to "F", to avoid text encroachment, and make some notes in the title labels.
I can't find anything about editing axis labels in the package's help page.
lnames <- list(Sex = c("M", "F"))
mosaic(HairEyeColor, set_labels=lnames, shade=T)
Or...
mosaic(HairEyeColor, set_labels=list(Sex = c("M", "F")), shade=T)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With