5
a sinistra è come il mio grafico ad anello attualmente assomiglia a destra come dovrebbe essere simile:Come esplodere ciambella grafico fette che utilizzano R (ggplot2)
C'è un modo per esplodere il grafico ad anello usando R?
Ecco il mio codice:
ggplot(dat, aes(fill = goalGroups, ymax = ymax, ymin = ymin, xmax = 4.8, xmin = 3)) +
geom_rect(color = "white") +
coord_polar(theta="y", direction = -1) +
xlim(c(0, 8)) +
theme_bw() +
theme(panel.grid=element_blank()) +
theme(axis.text=element_blank()) +
theme(axis.ticks=element_blank()) +
theme(axis.title.x = element_blank()) +
theme(axis.title.y = element_blank()) +
theme(panel.border = element_blank())
Sono molto grato per qualsiasi aiuto!