Closed DarioS closed 3 months ago
Honestly, if you have that few observations, you shouldn't make density plots anyways. If you don't have at least 20-50 points density estimates are useless.
Fair point. enrichplot's ridgeplot
should not attempt to plot such scenarios.
?geom_density_ridges
does not explicitly state the minimum number of observations per group. It seems to be three.Why no message or warning but only a blank row? I first noticed this issue from enrichplot when the core gene set size is 2.
The original density plot has no issues with two observations:
ggplot(diamonds[1:2, ], aes(carat)) + geom_density()
is not blank.