Skip to content
Prev 200975 / 398503 Next

ctree (party) changing font sizes in plots

On Fri, 20 Nov 2009, Sam Thomas wrote:

            
Currently, this is not implemented in "party". In interactive usage it is 
not easy to change the fontsize. If you're printing to PDF, you could 
easily increase/decrease the height and width which will decrease/increase 
the relative size of the text, respectively. Not elegant but works.

Alternatively, you could obtain the "partykit" package from R-Forge which 
has a new implementation of general infrastructure for tree. With that you 
can do

library("partykit")
irisct <- ctree(Species ~ ., data = iris)
plot(irisct, gp = gpar(fontsize = 20))

Note that "party" and "partykit" should not be used together, partykit has 
a slightly enhanced/modified ctree() function.

hth,
Z
Message-ID: <alpine.DEB.2.00.0911201833170.20837@paninaro.stat-math.wu-wien.ac.at>
In-Reply-To: <98F6510C4BAAF1449F57D9FF16BE2EB701893BFF@EXVBE011-2.exch011.intermedia.net>