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?

JaouadZrhibi's avatar
JaouadZrhibi
Helper I
7 years ago

Hi Katalo,

 

I m really sorry, I am also a beginner in Power BI.

 

Hope you will find the solution.

 

Regards,

 

Jaouad

  • boefraty's avatar
    boefraty
    Microsoft Employee
    7 years ago

    Hi JaouadZrhibi and Katalo, 

     

    Run

    install.packages("corrplot")

     

    from any R console. You can also download script provided with sample 
    https://community.powerbi.com/oxcrx34285/attachments/oxcrx34285/RVisuals/12/16/ScriptInstallPackagesWithWorkaroundsCorrplot.R

    Unfortunatly, if you use R Visual, power BI can not handle automatic package install. 

    In case of R Custom Visual 
    https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104380814?tab=Overview

     

    It is installed automatically 

     

    • Mike_Carlo's avatar
      Mike_Carlo
      Most Valuable Professional
      7 years ago

      The local installation of your R will need to include the "corrplot" package.  as boefraty stated below you can use the following code to install it. 

       

      install.packages("corrplot")

      You should run that in your local installation of R.  

       

      Follow this tutorial to help you install thie package "corrplot" 

      https://powerbi.tips/2016/09/using-r-visuals-in-power-bi/

       

       

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