[R] Need some help reproducing a graph

Rui Barradas ruipbarradas at sapo.pt
Tue Oct 9 02:32:15 CEST 2012


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 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 this message in context: http://r.789695.n4.nabble.com/Need-some-help-reproducing-a-graph-tp4645492p4645508.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.




More information about the R-help mailing list