geom_text not working on my pie chart in R, says not found
in
The Complete Data Visualization Course with Python, R, Tableau, and Excel
/
Pie Chart - R - How to Create a Pie Chart
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?
1 answers ( 0 marked as helpful)
Hi Nike,
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!
Best,
365 Eli