Displaying 2 results from an estimated 2 matches for "irisct".
2009 Nov 20
1
ctree (party) changing font sizes in plots
When plotting Binary Trees (ctree) from the party package, is there a
way to adjust the font sizes of the leaves?
require(party)
irisct <- ctree(Species ~ ., data = iris)
plot(irisct)
I want to adjust the font sizes for "Node 2", "Node 5", etc. I'd also
like to be able to adjust the font sizes for the x-axis and y-axis
labels of the histograms.
Thanks,
Sam Thomas
Revelant Technologies, LL...
2010 Sep 13
2
Saveing plot to multiple locations
Hi
Im trying to save a plot both to a pdf and as just a picture but without
success so if someone can help me I would be happy :)
my code:
require(party)
irisct <- ctree(Species ~ .,data = iris)
data(iris)
attach(iris)
pdf('/home/joel/Skrivbord/mammamu.pdf')
try(png('/home/joel/Skrivbord/mammamu1.png'))
plot(Sepal.Length, Petal.Length, col=unclass(Species))
legend(4.5, 7, levels(Species), col=plot_colors, cex=0.8, fill=1:3)
try(png('...