c6user
c6user

Reputation: 55

R: How to remove helper text in pie chart?

I have the following pie chart in R. How do I remove the "0/100", "25", "50", "75" from around the circle?

enter image description here

I've already tried this:

theme(axis.text = element_blank(), 
        axis.ticks = element_blank(),
        panel.grid.major.y = element_blank(), 
        panel.grid.minor.y = element_blank(), 
        panel.grid = element_blank())

The issue appears when I add in the line with geom_text()

geom_text(aes(label = paste0(round(percent), "%")), position = position_stack(vjust = 0.5), check_overlap = T)

Thank you!

Upvotes: 1

Views: 377

Answers (1)

c6user
c6user

Reputation: 55

+ theme_void()

Thank you @markus

Upvotes: 1

Related Questions