Skip to content

Instantly share code, notes, and snippets.

@jamster
Created October 19, 2010 14:22
Show Gist options
  • Select an option

  • Save jamster/634272 to your computer and use it in GitHub Desktop.

Select an option

Save jamster/634272 to your computer and use it in GitHub Desktop.
# I have this data
sample <- c(0, 1, 1, 2, 2, 2, 4, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9)
# I already grouped and counted it
vals <- c(0,1,2,4,6,7,8,9)
freqs <- c(1,2,3,1,1,6,3,4)
# I want to use this, to do a histogram instead of on the original values
# Not hist(sample)
# but hist( vals, freas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment