This is a reply to:

Message: 43

Date: Sun, 27 Apr 2008 02:41:36 -0400

From: "marcelha mukim" <[EMAIL PROTECTED]>

Subject: [R] how to modify the histogram's frequencies

To: r-help@r-project.org

Message-ID:

      <[EMAIL PROTECTED]>

Content-Type: text/plain

 

Hi:

 

 

I have been trying to figure out a simple way to plot an histogram whose

frequencies are modified by a factor (associated with each value).

 

 

Actually what I did was plotting each value with its modified

frequency(using plot($values, $frequency, type="h")), but it doesnt take

into account the probability distribution(which is necessary).

 

I think you should be able to:

 

newvalue=rep($value,$frequency)

hist(new,value,freq=F)

 

Sarah Hardy

[EMAIL PROTECTED]


        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to