I have been trying to create plots on the Rstudio 4.2.1 version on a Windows8 laptop, however, I have just been getting errors. At first the function was not found, then it prompted me to install Rtools which I did and now it says ggplot does not work on this version of Rstudio. What should I do? I need your help as I need to complete a project within limited time and I am stuck.
You get the error "the function ggplot was not found" because you have not loaded the ggplot2 library.
Have you run
install.packages("ggplot2")
What was the result of that? You only have to run that once to download the package. If it ran successfully at any previous time, you do not need to run it again.
Have you run
library(ggplot2)
before trying to use the ggplot() function?
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.