I need to make a plot as shown in figure2, I tried changing multiple "geom_" functions. Can I get help? I'm able to plot something like this
using :
my_data$Genus = factor(as.character(my_data$Genus), levels=names(x))
ggplot(my_data,
aes(x=Genus, y=log2FoldChange, color=Phylum)) +
geom_point(size=6) +
theme(axis.text.x = element_text(angle = -90,
hjust = 0,
vjust=0.5))
but instead of "dots" I want the horizontal bars as shown in the second figure.