C5.0 Decision Trees in R

Does anyone know how to produce a plot of a decision tree from a C5.0 classification model, using the caret and rattle packages in R? Or if not from caret and rattle, from another package in R?

I produce the C5.0 model using caret, but cannot generate the decision tree with rattle. The highlighted part of the code below doesn’t work (from rattle).

FB_IMG_1623886895001

How is this related to GitHub? If it is not, Stack Overflow or similar might be a better place to ask about this.

You’re right. I posted here by mistake. This should be in stack overflow.