Skip to content

Instantly share code, notes, and snippets.

@CodeMaster7000
Created January 29, 2022 10:10
Show Gist options
  • Select an option

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

Select an option

Save CodeMaster7000/a795aa862b806619d37b13a4ddb4019d to your computer and use it in GitHub Desktop.
A program in R which plots a bar graph. The information used to plot this bar graph is from sample data regarding the temperature in a location during the week.
max.temp <- c(22, 27, 26, 24, 23, 26, 28)
barplot(max.temp,
main = "Maximum Temperatures in a Week",
xlab = "Degrees Celsius",
ylab = "Day",
names.arg = c("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"),
col = "red",
horiz = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment