I am unable to move the axis labels (Field data, secondary data, etc) around on the below figure so that they are both big and fit entirely within the diagram. The entire code is below. Suggestions on what to do?
Datasource<-c("Field data", "Participatory data", "Remotely sensed data",
"Remotely sensed secondary data", "Secondary data")
Number<-c(32,39,55,96,202)
Percentage<-c(11,14,19,34,70)
DF<-data.frame(Datasource, Number, Percentage)
FigDataSourcesFlower<-ggplot(data=DF, aes(x=Datasource, y=Percentage)) +
geom_bar(stat="identity", fill = "blue") + theme_bw() +
geom_text(aes(y = Percentage + 2.5,label = Percentage)) +
coord_polar() +
theme(axis.text.x = element_text(size = 15), axis.text.y=element_blank(), axis.ticks=element_blank(), axis.title=element_blank())
FigDataSourcesFlower
I tried using hjust
and vjust
, but I don't think this is exactly what I am looking for as these are more for angle adjustments. I read that I might be able to use \n
to break up the labels over two rows, hoping this will help them fit, but I am unsure how to do this.