Created
January 29, 2022 10:10
-
-
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.
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
| 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