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
TimKroemer's avatar
TimKroemer
Frequent Visitor
9 years ago

Dear Sharon

 

This is really excellent - my only question is whether there is a way to format (i) the colors, to make the output better fit in with the existing report and (ii) the formating of numbers in nodes? I am working on a loan portfolio to estimate the likelihood of default - but the loan amounts are presented in ln (XeY) format - it would be really helpful to amend these.

 

Regardless, this is an excellent contribution!

 

Gratefully,

 

Tim

boefraty's avatar
boefraty
Microsoft Employee
9 years ago

Hi TimKroemer ,

Sorry for the delay in reply: 

(i)the colors.

Answer: look for "default.palettes"  in R script and change it as you like 

 

(ii) the formating of numbers in nodes?
Answer:  prp {rpart.plot}  function has plenty of parameters. 
https://www.rdocumentation.org/packages/rpart.plot/versions/2.1.0/topics/prp

 

  • Anonymous's avatar
    Anonymous
    Not applicable
    6 years ago

    hello, where I can find the default.palettes option you are talking about? in the visual format pane there is no such thing. thank you.

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