当前位置:网站首页>Map mixed density function and quantile added line

Map mixed density function and quantile added line

2022-08-09 13:47:00 Mrrunsen

Recently, there is a need to draw the following graphs in the statistics class:

insert image description here

Here I mainly use stat_density_ridges() from the ggridges package

Load package

library(ggplot2)library(ggridges)generate datasetAssume that the data come from a mixed distribution.item <- 10000inds <- rbinom(1, item,0.5
原网站

版权声明
本文为[Mrrunsen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/221/202208091242219398.html