I've done the following plot so far:
Is it possible to add numbers from 1 to x inside the square where there's the color in the legend, and add a label inside the pie-chart referencing to the number instead of adding the entire label?
EDIT. Code:
ggplot(BP, aes(x=1, y=Enrichment_Score, fill=GO.ID)) +
geom_bar(stat="identity") +
coord_polar(theta='y') +
guides(fill=guide_legend(override.aes=list(colour=NA), nrow=6)) +
theme(axis.ticks=element_blank(), axis.title=element_blank(), axis.text=element_blank(), panel.grid = element_blank(), legend.position="bottom") +
ggtitle("Biological Processes")
Data (just few rows):
GO.ID Enrichment_Score
kinetochore organization 18.085646
defense response to Gram-negative bacterium 18.085646
cell wall repair 18.085646