Last answered:

18 Oct 2023

Posted on:

03 Oct 2023

0

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?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

18 Oct 2023

0

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

Submit an answer