To plot a normal distribution with a mean of 10 and standard deviation of 2 in R, we can use the dnorm() and curve() functions.
dnorm() is used to calculate the height of the probability density function at a given point, while curve() is used to plot the probability density function over a range of values.
Here's an example code:
main.r470 chars13 lines
This will produce a plot that shows the normal probability density function with a mean of 10 and standard deviation of 2.
gistlibby LogSnag