I am trying to elaborate a pie chart, my data are number (1:61), I have placed them as a character when the dataset was imported y my script is..
    porcentaje<-review_a_r %>% 
  group_by(s_s) %>% 
  count() %>% 
  ungroup() %>% 
  mutate(percentage=`n`/sum(`n`) * 100)
ggplot(porcentaje, aes(x=1, y=percentage, fill=s_s)) +
   geom_bar(stat="identity") +
  geom_text(aes(label = paste0(round(percentage,1),"%")),
            position = position_stack(vjust = 0.5)) +
  coord_polar(theta = "y") + 
   theme_void()
How can I obtain only the classes with a percent >= of 10% and the others are in a section of "others"??
 
    