I am attempting to weight a histogram with another variable in the spreadsheet. does anyone know an easy way of doing this. I have been attempting to use weighted.hist from the plotrix package but I can't figure out how to use the other variable as the weight.
I need to weight the Teton_Co_V column in this spreadsheet with GROUP_SIZE column. library(plotrix) training <- read.csv("Biota_subset.csv") y <- subset(training, select = c(Teton_Co_V)) x <- subset(training, select = c(GROUP_SIZE)) weighted.hist(y, x) Any suggestions would be great! Chris
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.