Re: [R] putting mean and sd on a histogram

From: Jorge Iván Vélez <jorgeivanvelez_at_gmail.com>
Date: Fri, 8 Feb 2008 15:44:59 -0500

Hi David,

Try abline(v=c(m-stanD,m+stanD),col=2,lty=2)

I hope this helps,

Jorge

On 2/8/08, dkowalske_at_umassd.edu <dkowalske_at_umassd.edu> wrote:
>
> Hi,
> I would like to put the mean and + / - the standard deviation as lines on
> the x axis of a histogram. My attempts using the histogram function have
> been unable to do this. My searches are unsucessful on this subject.
> Any ideas are appreciated.
> Thanks
>
> stemp <- 5 6 5 5 5 5 6 5
> m <-5.25
> stanD <- 0.46291005
>
> using windows xp
> R 2.6
>
>
>
> --------------------------------------------------
> David Kowalske Jr
> Graduate Research Assistant
> School for Marine Science and Technology
> 200 Mill Road
> Suite 325
> Fairhaven, MA 02719
> Phone (508) 910-6368
>
> ______________________________________________
> R-help_at_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.
>

        [[alternative HTML version deleted]]



R-help_at_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. Received on Fri 08 Feb 2008 - 21:26:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Feb 2008 - 21:30:12 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive