geom_text not working on my pie chart in R, says not found
I ran the code
pie_chart <- pie_chart + geo_text(aes(label = percentages),
position = position_stack(vjust = 0.5))
all previous codes, defining this code ran fine, however when i tried to run this it returned an error that says
Error in geo_text(aes(label = percentages), position = position_stack(vjust = 0.5)) :
could not find function "geo_text"
What is wrong here please?
At first glance I don't really see an issue with your code, so I'd say to restart R studio and try to run it again. If the issue persists, can you send me a screen shot of your code please, along with the error message and the ideally your R studio screen.
Thanks in advance!