My rstudio could not find funtcion"ggplot2"

Hello and a very happy new year!:relaxed:

I'm a newbie in Rstudio.

Please May I ask for a help to fix an issue as follows?

• I fail to visualize my date frame by using ggplot2 in Rstudio cloud. It throws an error message saying - could not find function "ggplot2".
• What I did is I tried things like unstalling/ installing or install.packages("colorspace") following the solutions of the similar topics of the past.

• My OS is Windows 10 pro.
• .LibPaths() returns "/opt/R/4.1.2/lib/R/library"
• ggplot2 ( 3.3.5) is installed.

Thank you so much for your time.

Best wishes.

Try these:

install.packages("tidyverse")
install.packages("rlang")
install.packages("tidyverse", independencies = TRUE)
install.packages("ggplot2", independencies = TRUE)

Bye!

ggplot2 is the name of the package, the function is called ggplot() (without the 2), also make sure you have loaded the package into your session with library(ggplot2) before trying to use the ggplot() function, if you get an error message while loading the package please post it here so we can take a look.

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.