Rstudio could not find function ggplot

install.packages("ggplot2")
library(ggplot2)
 
server = function(input, output, session){
  output$trend = renderPlot({
    ggplot()
  })
}
Content Protection by DMCA.com
Please Share