Last active
October 27, 2019 11:31
-
-
Save juliuskittler/060bf6a6ec8304b6a996f7279b0259af to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| df = ggplot2::diamonds # data frame with 1 character or factor variable | |
| ggplot(data = df, aes(x = cut)) + | |
| geom_bar(fill = "steelblue4", alpha = 0.8) + | |
| labs(title = "Number of Diamonds by Cut", y = "Count", x = "Cut") + | |
| theme_bw() + theme(plot.title = element_text(hjust = 0.5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment