Using ggplot function in R error : could not find function ggplot

后端 未结 1 785
你的背包
你的背包 2020-12-30 20:24

I have installed ggplot and ggplot2 and their dependencies, but I cannot use the function ggplot; whenever I try to use it I get

Error in gg

相关标签:
1条回答
  • 2020-12-30 20:58

    Try:

    library(ggplot2)
    

    Even after installing a package, you have to load a package each time you load R.

    This question is answered comprehensively in the r-faq:

    Error: could not find function ... in R

    0 讨论(0)
提交回复
热议问题