Open Side Menu
Skip to contentBrand Logo
Forums
Inspiration
Ideas
Communities
Blogs
Learning
Support
RegisterSign In
  1. Microsoft Fabric Community
  2. Power BI forums
  3. Galleries
  4. R Script Showcase
Sharon's avatar
Sharon
Microsoft Employee
10 years ago

Correlation Plot

  Description Correlation plots can be used to quickly find insights, showing what otherwise would require lots of iterative slicing and dicing of your data. Download this sample to see how...
Correlation Plot Showcase.pbix470 KB
ScriptInstallPackagesWithWorkaroundsCorrplot.R1 KB
Advanced Analytics Visualizations
Katalo's avatar
Katalo
Frequent Visitor
7 years ago

Hello!

I'm new to R visuals in Power BI. But I've installed Microsoft R Open 3.5.1 and the visual in the example. But when I insert values the visual gives ni this error:

 

Error Message:
R script error.
Loading required package: corrplot
Warning messages:
1: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called 'corrplot'
2: In libraryRequireInstall("corrplot") :
*** The package: 'corrplot' was not installed ***
Error in corrplot(M, method = method, order = order, type = type, addrect = addrect, :
could not find function "corrplot"
Execution halted

 

What am I missing here?

smpa01's avatar
smpa01
Community Champion
7 years ago

Kataloprobably you figured it out by now. If not, I am not sure if the following steps solve your problem but this is my two cents. Initially, I faced a lot of trouble with R (got the similar message as you did). After a long trial and error and knocking on many doors I solved it by using the following

 

When I run R in PBI, the packages are accessed by PBI from C:\Users\xxxx\Library.

 

However, when I install the packages from R studio, the installed packages get saved in C:\Users\xxxx\Documents\R\win-library\3.5.

 

After installing a package, I copy that package

from

C:\Users\xxxx\Documents\R\win-library\3.5

to

C:\Users\xxxx\Library

 

Everything seems to work fine after that.

  • © 2026 Microsoft
  • Manage cookies
  • Privacy & cookies
  • Terms of use
  • Trademarks
Your Privacy Choices Consumer Health Privacy