Say I have a huge decision tree by using the package party, how does one declare auto size to fit everything into a jpeg or png?
Example:
library(party)
data(Boston)
jpeg("test.jpg")
tree <- ctree(crim ~ zn + indus + chas + nox + rm + age + dis + rad + tax + ptratio + black, data = Boston)
plot(tree)
So I think your problem here is that you aren’t getting output. The reason is because of how graphics devices work. You have to open the file to write to, enter the data you want in the file, then close the graphics device.
For what you want to do:
The numbers set the width and height of the png in pixels.
EDIT: If you want it to autosize, I suggest modifying it based on the number of terminal nodes: