How do I install.packages corrplot in RStudio?

jiaxil picture jiaxil · Oct 25, 2016 · Viewed 20.2k times · Source

I'm getting errors trying to use install.packages(corrplot) in RStudio:

library(corrplot)

Error in library(corrplot) : there is no package called 'corrplot'

install.packages(corrplot)

Error in install.packages : object 'corrplot' not found

What am I doing wrong?

Screenshot of error message

Answer

Lloyd Christmas picture Lloyd Christmas · Oct 25, 2016

You need to put it in quotes.

install.packages("corrplot")

Then you can load it.

https://stat.ethz.ch/R-manual/R-devel/library/utils/html/install.packages.html