If I have a vector (e.g., v<-runif(1000)), I can plot its histogram (which will look, more or less, as a horizontal line because v is a sample f
v<-runif(1000)
v
An alternative from the weights package is wtd.hist()
weights
wtd.hist()
w<-seq(1,1000) v<-sort(runif(1000)) wtd.hist(x=v,weight=w)