1

I have generated a simple decision with rpart and displayed it with rpart.plot like the following.

Decision Tree

Is it possible to edit the look of the tree so it's "mirrored" like the following:

         (e-100%)
____(yes)___|___(no)____
|                       |
|                     (e-53%)
(p-47%)               __|__
                     |     |
                  (p-1%)  (e-52%)

Mert Onur
  • 129
  • 1
  • 8

1 Answers1

1

Adding the parameter xflip=TRUE to rpart.plot function flips the tree horizontally like intended

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Mert Onur
  • 129
  • 1
  • 8