Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为给定的参数创建各种不同类型的 pdf(正常、beta、weibull 等)的图。我对 R 非常陌生,我能找到的所有其他资源都显示了如何将这些分布拟合到数据中;我找不到任何关于如何独立绘制分布的信息。我怎么做?
## Normal PDF x <- seq(-4,4,.001) y <- dnorm(x) plot(x,y) ## Beta PDF x <- seq(0,1,.001) y <- dbeta(x,2,5) plot(x,y) # Can also do with line instead of points x <- seq(0,1,.001) y <- dbeta(x,2,5) plot(x,y,type='n') lines(x,y)