Stacked histograms like in flow cytometry

前端 未结 5 1218
攒了一身酷
攒了一身酷 2020-12-15 14:45

I\'m trying to use ggplot or base R to produce something like the following:

\"enter

5条回答
  •  天涯浪人
    2020-12-15 15:18

    Using the ggridges package:

    ggplot(my.data, aes(x = V1, y = factor(V2), fill = factor(V2), color = factor(V2))) +
      geom_density_ridges(alpha = 0.5)
    

提交回复
热议问题