Hmmm. I was here. Without changing the inside of the partykit package, I don’t know a way to improve the output on this particular size (I often have problems with the X axis labels that are too long on the output chart that is displayed from the tree graph with a polychotomically dependent variable).
This is an ugly workaround, but you can get the result from the tree to find out which categories go there and then use something like GIMP to appropriately highlight the image for your PowerPoint / Report / whatever.
Model formula: sex ~ state + diag + death + status + T.categ + age Fitted party: [1] root | [2] T.categ in hs, hsid, haem, other | | [3] T.categ in hs, hsid, haem | | | [4] state in NSW, Other, VIC: M (n = 2386, err = 0.0%) | | | [5] state in QLD: M (n = 197, err = 0.5%) | | [6] T.categ in other: M (n = 70, err = 10.0%) | [7] T.categ in id, het, blood, mother: M (n = 190, err = 42.6%) Number of inner nodes: 3 Number of terminal nodes: 4
You can also adjust the output size to something larger, say with png ()
png('tmp.png',width=1024,height=768) plot(SexTest) dev.off()

source share