简体   繁体   English

如何在r studio中缩小决策树图?

[英]How to zoom out decision tree plot in r studio?

I have plotted a decision tree using ctree() present in the party package. 我使用派对包中的ctree()绘制了一个决策树。 The decision tree is in the screenshot. 决策树位于屏幕截图中。 The nodes of the tree are overlapping so I am not able to see them. 树的节点重叠,所以我无法看到它们。 I tried the zoom option present their, but it is just zoom in. Can you please suggest me how to zoom out so I can see all the nodes clearly? 我尝试使用缩放选项显示它们,但它只是放大。你能建议我如何缩小以便我可以清楚地看到所有节点吗?

1]

Your question is not entirely clear and you havent specified what you have tried. 你的问题并不完全清楚,你没有说明你尝试过的。 But as far as I understand, you can try the following method. 但据我了解,您可以尝试以下方法。

You can specify the width and height to get a better view. 您可以指定宽度和高度以获得更好的视图。

{r, fig.width = 100, fig.height=45 } plot(your_ctree_here)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM