[R] histogram density division
Hi, I already sent this query but I didn't receive any answers. I try another time and try to explain another way my question... I want to decrease the height of my bands in my histogram by a factor of 5... how can I do that? Is there an argument to hist() that do the job? Thanks, Mathieu Hi, I would like to plot an histogram with modified density values. My Y-axis represent the occurences of the ranges (specified by the breaks argument) of my data (represented by a big vector). Now, I would like to divide by X the number of occurences in each bands and do a plot of lower occurences. How can I do that? Thanks, Mathieu __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Re: [R] histogram density division
Mathieu - That's easy. Assign the return value of hist() to some variable, say fixed, then go in and hack the value of fixed$counts however you like, and re-plot using plot(fixed). Example code: fixed - hist(rnorm(2000)) fixed$counts - fixed$counts / 5 plot(fixed) I confess I didn't quite understand your question the first time I saw it, so couldn't reply. - tom blackwell - u michigan medical school - ann arbor - On Tue, 9 Dec 2003, Mathieu Drapeau wrote: Hi, I already sent this query but I didn't receive any answers. I try another time and try to explain another way my question... I want to decrease the height of my bands in my histogram by a factor of 5... how can I do that? Is there an argument to hist() that do the job? Thanks, Mathieu Hi, I would like to plot an histogram with modified density values. My Y-axis represent the occurences of the ranges (specified by the breaks argument) of my data (represented by a big vector). Now, I would like to divide by X the number of occurences in each bands and do a plot of lower occurences. How can I do that? Thanks, Mathieu __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
[R] histogram density division
Hi, I would like to plot an histogram with modified density values. My Y-axis represent the occurences of the ranges (specified by the breaks argument) of my data (represented by a big vector). Now, I would like to divide by X the number of occurences in each bands and do a plot of lower occurences. How can I do that? Thanks, Mathieu __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help