Skip to content

Instantly share code, notes, and snippets.

@seankross
Last active April 29, 2022 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seankross/6356959 to your computer and use it in GitHub Desktop.
Save seankross/6356959 to your computer and use it in GitHub Desktop.
Making a histogram in R
# Assuming you have a file called Workbook2.csv on your desktop
Workbook2 <- read.table("~/Desktop/Workbook2.csv", quote="\"")
colors = c("red", "yellow", "green", "violet", "orange")
hist(Workbook2$V1, main = "Title", xlab = "X-axis", ylab = "Y-axis", col = colors)
@AnnieRShelp
Copy link

I have to make a histogram with two objects. I know how do to it for one, but how do I get them to communicate? I'm not trying to create two histograms in one graph, mind you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment