Plot normal, left and right skewed distribution in R

前端 未结 3 1638
一个人的身影
一个人的身影 2021-01-30 21:47

I want to create 3 plots for illustration purposes: - normal distribution - right skewed distribution - left skewed distribution

This should be an easy task, but I fo

3条回答
  •  梦如初夏
    2021-01-30 22:22

    If you are not too tied to normal, then I suggest you use beta distribution which can be symmetrical, right skewed or left skewed based on the shape parameters.

    hist(rbeta(10000,5,2))
    hist(rbeta(10000,2,5))
    hist(rbeta(10000,5,5))
    

提交回复
热议问题