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

Decision Trees

  Description With decision trees, you can visualize the probability of something you want to estimate, based on decision criteria from the historic data. The decision tree classifier aut...
Decision Trees Showcase.pbix1 MB
ScriptInstallPackagesWithWorkaroundsDtree.R1 KB
Advanced Analytics Visualizations
ironryan77's avatar
ironryan77
Kudo Commander
9 years ago

This visual is excellent. 

  1. How can I convert the row counts from scientific notation to numeric? 
  2. How can I convert my dataset to method="Class"? 
  3. Is it possible to add Tooltips to these nodes using R-script?

 

Most of my code is from your sample PBIX file. 

Here is my screenshot.

boefraty's avatar
boefraty
Microsoft Employee
9 years ago

Hi ironryan77, 

1) Format it via parameters of prp function, may be you will need to reload "format" function 

2) Option 1: use characters instead of "numbers" for 1st column , Option 2: specify it explicitely as rpart(..., method ="class",...)

3) This visual is image, so tooltips are not possible. (We suport such functionality in  HTML-based R-powered Custom Visuals)

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