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
JaouadZrhibi's avatar
JaouadZrhibi
Helper I
8 years ago

Hi,

 

After reading your nice posts, I need some help.

 

(Sorry, I m beginner on Power BI).

 

https://app.powerbi.com/view?r=eyJrIjoiNGNjYWEyMDItMmVhYS00OTVmLTgxM2ItYjFmMjYyODVmMDU5IiwidCI6IjBiOWI3NWE3LTk0MTQtNDg0Ny05NjBkLWRiN2YxNzgyMjk2ZSIsImMiOjl9

 

 

I would like to build graphs or indicators in order to see correlations between countries in import trade according 2 variables : weights in TON and volumes in USD.

 

 

I added this code but it doesn't work : 

 

require("corrplot")
library(corrplot)

M <- cor(dataset)

corrplot(M, method = "circle", tl.cex=0.6, tl.srt = 45, tl.col = "black", type= "upper", order="hclust")

 

 

 

If you have any suggestions, please advise.

 

Thank you in advance for your time and help,

 

Jaouad

Example_Mattress imports trade statistics.pbix1 MB
boefraty's avatar
boefraty
Microsoft Employee
8 years ago

Hi JaouadZrhibi, 

Your code is almost perfect just di right-click on your data clumns and select  "Don't summarize" 

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