I am sure this is a duplicate . Anyway, look at the following code snippet
x <- seq(5, 15, length=1000) y <- dnorm(x, mean=10, sd=3) plot(x, y, type="l", lwd=1)
Iām sure that you can do it yourself, because the title, which you might want to find in the names main=
and y-axis
, is also up to you.
If you want to see more tails of the distribution, why don't you try playing with the seq(5, 15, )
section? Finally, if you want to know more about what dnorm
does, I suggest you look here
source share