Histogram

View: New views
4 Messages — Rating Filter:   Alert me  

Histogram

by aledanda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo,

How can I have the control of the width of each bin in the histogram?
I would like to plot my data modifying the number and the width of the bins.

Is there a good pdf or manual where i can learn to use the plot/hist in R very well?
I find the help not always clear

Thanks a lot


Ale

Re: Histogram

by Uwe Ligges-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



aledanda wrote:
> Hallo,
>
> How can I have the control of the width of each bin in the histogram?
> I would like to plot my data modifying the number and the width of the bins.
>
> Is there a good pdf or manual where i can learn to use the plot/hist in R
> very well?

See
  ?hist
and its argument "breaks".

Uwe Ligges



> I find the help not always clear
>
> Thanks a lot
>
>
> Ale

______________________________________________
R-help@... 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.

Re: Histogram

by Mark Knecht :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 7/3/09, aledanda <danda.galli@...> wrote:

>
>  Hallo,
>
>  How can I have the control of the width of each bin in the histogram?
>  I would like to plot my data modifying the number and the width of the bins.
>
>  Is there a good pdf or manual where i can learn to use the plot/hist in R
>  very well?
>  I find the help not always clear
>
>  Thanks a lot
>
>
>  Ale

Possibly somewhat like this?

http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=89

- Mark

______________________________________________
R-help@... 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.

Re: Histogram

by Greg Snow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I addition to the other responses you have received, you may want to play with the run.hist.demo function in the TeachingDemos package to learn more.

--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow@...
801.408.8111


> -----Original Message-----
> From: r-help-bounces@... [mailto:r-help-bounces@r-
> project.org] On Behalf Of aledanda
> Sent: Friday, July 03, 2009 9:55 AM
> To: r-help@...
> Subject: [R] Histogram
>
>
> Hallo,
>
> How can I have the control of the width of each bin in the histogram?
> I would like to plot my data modifying the number and the width of the
> bins.
>
> Is there a good pdf or manual where i can learn to use the plot/hist in
> R
> very well?
> I find the help not always clear
>
> Thanks a lot
>
>
> Ale
> --
> View this message in context: http://www.nabble.com/Histogram-
> tp24325261p24325261.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@... 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.

______________________________________________
R-help@... 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.