Skip to content

Instantly share code, notes, and snippets.

@SmashedFrenzy16
Created April 3, 2022 16:57
Show Gist options
  • Save SmashedFrenzy16/6e75decd022245f15a6423afe030b0c8 to your computer and use it in GitHub Desktop.
Save SmashedFrenzy16/6e75decd022245f15a6423afe030b0c8 to your computer and use it in GitHub Desktop.
A bar chart made in R that shows people's favorite crisps!
fav.crisps <- c(30, 21, 10, 13)
barplot(fav.crisps,
main = "People's Favorite Flavour Of Crisps",
xlab = "Number Of Students",
ylab = "Crisps Flavour",
names.arg = c("Plain", "Chilli", "Cheese + Onion", "Lime"),
col = "red",
horiz = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment