Re: [R] Need some help reproducing a graph

2012-10-08 Thread Rui Barradas
Hello, Try qq <- qnorm(0.975) x <- 90 + c(-1, 1)*qq*10 f <- function(x) dnorm(x, 90, 10) curve(f, from = 60, to = 120) segments(x, 0, x, f(x)) Hope this helps, Rui Barradas Em 09-10-2012 00:48, dLevy escreveu: Its not homework, it is a seminar exercise that I need to complete in order to l

Re: [R] Need some help reproducing a graph

2012-10-08 Thread dLevy
Its not homework, it is a seminar exercise that I need to complete in order to learn enough in order to take the home exam next month. There are no lecture slides, just a generic textbook in R for bio statistics. Ive been trying to solve this problem for almost a week now but I am stuck. -- View

Re: [R] Need some help reproducing a graph

2012-10-08 Thread Bert Gunter
Homework? We don't do homework here. Bert Sent from my iPhone -- please excuse typos. On Oct 8, 2012, at 4:20 PM, dLevy wrote: > > > > I need to replicate this graph. It is a simple normal distribution-curve > with mean 90 and sd=10. The

Re: [R] Need some help reproducing a graph

2012-10-08 Thread David Winsemius
On Oct 8, 2012, at 2:43 PM, dLevy wrote: > > > > I need to replicate this graph. It is a simple normal distribution-curve > with mean 90 and sd=10. The vertical bars is the 95% confidence limit of the > mean. How on earth do I add those c

[R] Need some help reproducing a graph

2012-10-08 Thread dLevy
I need to replicate this graph. It is a simple normal distribution-curve with mean 90 and sd=10. The vertical bars is the 95% confidence limit of the mean. How on earth do I add those confidence limits? Im thinking something that has to d