I have created a multiple pie chart plot. These are the codes -
Title = c("Male","Male","Male",
"Female","Female","Female",
"Both", "Both","Both")
BDD_Level = c('Subclinical BDD','Mild-Moderate BDD','Moderate-Severe BDD',
'Subclinical BDD','Mild-Moderate BDD','Moderate-Severe BDD',
'Subclinical BDD','Mild-Moderate BDD','Moderate-Severe BDD')
value = c(0.90, 0.09, 0.01,
0.84, 0.14, 0.02,
0.87, 0.11, 0.02)
piec<-data.frame(Title,BDD_Level,value)
ggplot(piec, aes("", value, fill = BDD_Level)) +
geom_bar(stat = "identity", size = 3) +
geom_text(aes(label = paste0(value * 100, "%")),
position = position_stack(vjust = 0.5),
color = "white", size = 4) +
coord_polar(theta = "y") +
facet_wrap(~ Title, nrow = 1) +
scale_fill_manual(values = c("#d45087", "#f95d6a","#ffa600"
)) +
theme_void()+
So, I want to place the pie chart entitled "Both" the very right side of this plot and bring the "Male" pie chart to the very left side of this plot.
Also,If I use nrow=2
function. How do I bring the plot of the 2nd row from side to the middle?