data looks like the following sample
|Species| |logSDM| |UseCategories| | X | | 3.14 | |AnimalFood| |Y | | 4.30 | |Medicines| |Z | |9.3 | | Materials| |L | |2.1 | |HumanFood| |X | |1.1 | |Medicine| |F | |3.5 | |Fuels|
the UseCategories
variable have 10 categories. I am getting a plot where I can not differentiate among different categories
ggplot(data=final, aes(x=logSDM, fill=UseCategories)) +
geom_density(adjust=1) +
theme_ipsum() +
facet_wrap(~UseCategories) +
theme([enter image description here][1]
legend.position="none",
panel.spacing = unit(0.1, "lines"),
axis.ticks.x=element_blank()
)
The plot I got:
[the plots are apparently the same. It is difficult to differentiate the data from the plots]