How do you use hist() to plot relative frequencies in R?
If I do the following, I will get a density plot, but I want a relative frequency plot:
a &l
you can try using the histogram() function in lattice
histogram()
a <- c(0,0,0,1,1,2) library(lattice) histogram(a)
defaults to percent.