Skip to content

Instantly share code, notes, and snippets.

@CodeMaster7000
Created February 13, 2022 17:19
Show Gist options
  • Select an option

  • Save CodeMaster7000/db3ed42ceb3e19ea450025cb16eeb79c to your computer and use it in GitHub Desktop.

Select an option

Save CodeMaster7000/db3ed42ceb3e19ea450025cb16eeb79c to your computer and use it in GitHub Desktop.
A line graph coded in R which compares and contrasts the amount of rainfall per month in two cities.
v <- c(7,12,28,3,41)
t <- c(14,7,6,19,3)
plot(v,type = "o",col = "red", xlab = "Month", ylab = "Rainfall (mm)",
main = "Rainfall Chart")
lines(t, type = "o", col = "blue")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment