I plotted random forest tree using reprtree package as below,
model23 <- randomForest(active ~ total_gross_amt + frequency + t_shirt, data = mydata)
reprtree:::plot.getTree(model23)
Random Forest Tree Plot :
But I am not able to interpret anything from the tree.
Is there anyway by which the tree size could be reduced or any other method by which a single random forest tree could be plotted in R with code?
Thanks in advance. Balaji
2 years late, but it might help someone else.
Go to plots tab > export > save as image > width = 1500, height = 900, don't forget to tick "view plot after saving" and click save
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.