简体   繁体   中英

Curve function in R for non-standard normal distribution

How can I use the curve function in R to draw a normal distribution curve by passing the mean and standard deviation? Not a standard normal curve, but by passing mu and sigma.

curve({ dnorm(x, mean=1,sd=.5)}, -2,2)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM