Open DarioS opened 2 months ago
A reproducible example pls.
I show the core issue. I subset the dataset so Virginica has only two samples.
library(ggridges)
ggplot(iris[1:102, ], aes(x = Sepal.Length, y = Species)) + geom_density_ridges() # However, 1:103 is fine.
Claus Wilke replied:
If you don't have at least 20-50 points, density estimates are useless.
So, he doesn't think that ggridges should support drawing a row with two observations.
geom_density_ridges
requires a minimum of three values. But, sometimes a core gene set has only two.ridgeplot
should automatically filter out such uninformative gene sets and not display them as blank rows.