Guest User

Untitled

a guest
Jul 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # I will assume one data point per line, no headers in table
  2.  
  3. data <- read.csv("/path/to/data.txt", header=F, stringsAsFactors=F)
  4. data <- data[, 1]
  5.  
  6. #you can plot this data already with, l = line
  7. plot(data, type ='l', col='red', main='holygrail!!!')
  8.  
  9.  
  10. number_of_bins <- 100
  11. #this does a histogram
  12. hist(data, breaks= number_of_bins, main='holygrail plot')
Add Comment
Please, Sign In to add comment