marcelha mukim wrote:
Hi Sarah:
Thank you very much, but my problem remains. What I want is not duplicate
the sample, but be able to divide each frequency for a factor(specific for
each value).For example:
Values 1 2 3 4 5
Frequency 10 34 56 67 98
Factor 105 50 60 150 200
Actually Im plotting: plot(Values, Frequency/Factor, type="b"). But I dont
know how to visualize the probability distribution. On the hand to modify
the "hist" function to include this Factor seems to be a daunting task.
Hi Marcelha,
Are you trying to create a weighted histogram? If so, have a look at
weighted.hist in the plotrix package.
Jim
______________________________________________
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.