Displaying 8 results from an estimated 8 matches for "terminal_panel".
2007 Oct 25
0
adjust labels in plot:terminal_panel {party}
Hi List,
I am unsuccessfully trying to beautify barplot outputs from ctree. For
example I would like to rotate x-axis lables and resize/change
font/type.
mtree <- ctree(ME ~ ., data = mammoexp)
plot(mtree,terminal_panel=node_barplot(mtree,col="black",fill=NULL,
beside=TRUE, ylines=NULL, widths=1,gap=NULL,
reverse=FALSE,id=FALSE))
plot(mtree,terminal_panel=node_barplot(mtree,col="black",fill=NULL,
beside=TRUE, ylines=NULL, widths=1,gap=NULL,
reverse=FALSE,id=FALSE, gp_la...
2006 Mar 01
0
Problems to get a ctree plot in a file via jpeg/png
...am using library "party" and I have found a curious/strange behaviour when
trying to save the output of a ctree in a file via jpeg/png command.
If you use:
################
library(party)
airq <- subset(airquality, !is.na(Ozone))
airct <- ctree(Ozone ~ ., data = airq)
plot(airct, terminal_panel = node_boxplot, drop_terminal = FALSE)
###############
you get a perfect and nice graph, but when you try the equivalent but trying
to put the output in a file:
#################
library(party)
airq <- subset(airquality, !is.na(Ozone))
airct <- ctree(Ozone ~ ., data = airq)
jpeg(filename =...
2011 Sep 08
1
Need formatting help - ctree - plot.party - node_hist
Hi,
I am trying to get the terminal nodes of a plot of a ctree object to look nice.
Using the iris data I have:
library(party)
mtree <- ctree(Species ~ ., data=iris)
plot(mtree,terminal_panel=node_barplot(mtree))
The terminal nodes don't display the species names because the names
are displayed horizontally. ?I would like to reduce the size of the
labels and make the terminal nodes horizontal barplots or rotate the
labels by 90 degrees, but I don't know how to do this. ?Any hel...
2006 Mar 01
1
Problems to get a ctree plot (library party) in a file via jpeg/png
...am using library "party" and I have found a curious/strange behaviour when
trying to save the output of a ctree in a file via jpeg/png command.
If you use:
################
library(party)
airq <- subset(airquality, !is.na(Ozone))
airct <- ctree(Ozone ~ ., data = airq)
plot(airct, terminal_panel = node_boxplot, drop_terminal = FALSE)
###############
you get a perfect and nice graph, but when you try the equivalent but trying
to put the output in a file:
#################
library(party)
airq <- subset(airquality, !is.na(Ozone))
airct <- ctree(Ozone ~ ., data = airq)
jpeg(filename =...
2010 Jul 09
2
Ctree Question
...been using ctree and have developed a 55 node - 28 terminal solution.
As can be imagined, the plot is difficult to travel down each of the major
branches.
I've read the help files for ctree I saw where terminal nodes can be color
coded.
plot(airct, type = "simple")
> plot(airct, terminal_panel = node_boxplot(airct, col = "blue", + fill =
hsv(2/3, 0.5, 1)))
Here is my question:
Since my model has 55 nodes and 28 terminal nodes,(ie many branches) is it
feasible to color code the each of the major branches and track the paths
down the decision tree?
R 2.11.1, Windox XP
Tha...
2012 Nov 14
3
ctree
Hello,
I plotted a nice tree with "ctree" . It shows 3 nodes with the prediction of
my 2 groups. (see picture)
Unfortunately I need a larger scale to read the exact prediction of my
groups to get the specificity and sensitivity. I tried to change the scale
with "axis" but it didn't work, my guess because it's not a normal graph
with x and y axis.
Has someone an idea
2011 Oct 06
0
Fwd: Re: Party extract BinaryTree from cforest?
...ound an internal workaround to this to support printing and plot type
> simple,
>
> tt<-party:::prettytree(cf at ensemble[[1]], names(cf at data at
> get("input")))
>> npt <- new("BinaryTree")
>> npt at tree<-tt
>> plot(npt)
> Error in terminal_panel(<S4 object of class "BinaryTree">) :
> ?ctreeobj? is not a regression tree
library("party")
cf <- cforest(Species ~ ., data = iris)
pt <- party:::prettytree(cf at ensemble[[1]], names(cf at data@get("input")))
pt
nt <- new("BinaryTree")
nt...
2008 Aug 13
2
mob(party) formula question
I try tu use mob() with my data.frame ('data.frame': 288 obs. of 81
variables; factors, numerics and ordered factors)
My response is a binary variable and I should use for modelling a logistic
regression (family=binomial).
I read in the "MOB" Vignette that I could use a formula like this if I would
like to have only partitioning variables apart from the response.