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
Package plotrix has a function weighted.hist which does what you want:
weighted.hist
w<-seq(1,1000) v<-sort(runif(1000)) weighted.hist(v, w)