Displaying 20 results from an estimated 2000 matches similar to: "ctree (party) changing font sizes in plots"
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,
2010 Mar 09
2
ctree - party package multivariate response variables
Hi,
I have a problem with ctree of party package.
I have data on distribution of more than one species (about 50 species) and I
would like identify the relation of this multivariate object (species
distribution) with a number of explanatory variables.
rs is the name of my dataframe containing the species (columns from 2 to 51) and
the explanatory variables (columns 52 and 53). Rows are my
2008 Jun 30
1
ctree (party) plot meaning question
I tried to use ctree but am not sure about the meaning of the plot.
My.data.ct<-ctree(Resp~., data=My.data)
plot(My.data.ct)
My data.frame contains 88 explanatory variables (continous,ordered/unordered
multistate,count data) and one response with two groups.
In the plot are only two variables shown (2 internal nodes) and 3 final
nodes. Does it mean that only these two variables show a
2011 Feb 07
5
"Where" command in ctree (party)
Hello,
I need to classify (i.e., export a vector with terminal node id's) new cases
using a ctree (party package) model based on different cases (learning
sample).
I tried the where command with the following syntax:
> where(tree, newdata=data2)
expecting to get terminal nodes of data2 cases based on rules of tree model
(data1 as learning sample). However it returned the following error
2006 Jul 14
1
party - ctree() - terminal nodes reference for every obs
Dear R.Users,
using ctree() (from "party" library) on a data.frame, I want to append a
column with the references for the groups/segments detected. While these
nodes are easy readable in output, I need a vector for my obs.
Hints?
Cheers
--
Daniele Medri
2011 Feb 17
1
missing values in party::ctree
After ctree builds a tree, how would I determine the direction missing values follow by examining the BinaryTree-class object? For instance in the example below Bare.nuclei has 16 missing values and is used for the first split, but the missing values are not listed in either set of factors. (I have the same question for missing values among numeric [non-factor] values, but I assume the answer
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
2013 Apr 02
1
ctree (party) - select a specific variable in the first split
Hello,
My question is related to ctree() function from the library 'party'.
Is there a way to force ctree() to use a specific variable in the first
split? I am asking because the first split contains two variables with
very similar scores, and choosing the alternative variable would induce
a tree somewhat easier to interpret.
Thanks,
Sal
2010 Nov 15
1
Path to nodes in ctree package party
Hallo list,
I'm wondering if there is a way to extract the path to terminal nodes
in a BinaryTree object, e.g. ctree, like the function path.rpart in
package rpart.
Thanks, Sven
2006 Mar 01
1
Problems to get a ctree plot (library party) in a file via jpeg/png
Hello All,
I 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
2016 Apr 13
4
Decision Tree and Random Forrest
Ah yes I will have to use the predict function. But the predict function
will not get me there really. If I can take the example that I have a
model predicting whether or not I will play golf (this is the dependent
value), and there are three independent variables Humidity(High, Medium,
Low), Pending_Chores(Taxes, None, Laundry, Car Maintenance) and Wind (High,
Low). I would like rules like
2012 Oct 31
1
party tree coordinates
I'm hoping that folks out there with expertise in working with the party
package can help me out here. My team is trying to convert party tree
output into a text file format that can be read by our image processing
software. We are running into difficulties because the way the two
different programs identify their nodes is different.
R numbers it's nodes 1, 2, 3, 4, 5, 6 etc. down the
2012 Mar 04
1
rpart package, text function, and round of class counts
I run the following code:
library(rpart)
data(kyphosis)
fit <- rpart(Kyphosis ~ ., data=kyphosis)
plot(fit)
text(fit, use.n=TRUE)
The text labels represent the count of each class at the leaf node.
Unfortunately, the numbers are rounded and in scientific notation rather
than the exact number of examples sorted by that node in each class.
The plot is supposed to look like
2009 Oct 05
1
btrfs-progs trivial: Double definition of BTRFS_CSUM_TYPE_CRC32 in ctree.h
Hello,
I noticed a double definition of BTRFS_CSUM_TYPE_CRC32 in ctree.h
and attach a patch that removes it.
Best regards,
Dirk
2010 Jun 21
2
ctree
Hello,
This is a re-submittal of question I submitted last week, but haven't rec'd
any responses.
I need to extract the probabilities used to construct the barplots
displayed as part of the graph produced by plot("ctree").
For example,
library(party)
iris.ct <- ctree(Species ~ . , data = iris)
plot(iris.ct)
Instead of a simple example with only 4 terminal nodes, my
2012 Oct 02
3
[Btrfs-next] bulid failure at fs/btrfs/ctree.h
Hello Josef,
FYI build failure occured in fs/btrfs/ctree.h.
CC fs/btrfs/super.o
In file included from fs/btrfs/delayed-inode.h:30:0,
from fs/btrfs/super.c:45:
fs/btrfs/ctree.h:3235:1: error: expected identifier or ‘(’ before ‘<<’ token
make[3]: *** [fs/btrfs/super.o] Error 1
make[2]: *** [fs/btrfs] Error 2
make[1]: *** [fs] Error 2
make[1]: Leaving directory `
make:
2011 Feb 16
1
caret::train() and ctree()
Like earth can be trained simultaneously for degree and nprune, is there a way to train ctree simultaneously for mincriterion and maxdepth?
Also, I notice there are separate methods ctree and ctree2, and if both options are attempted to tune with one method, the summary averages the option it doesn't support. The full log is attached, and notice these lines below for
2011 Mar 24
1
Ctree Model Variables
Hello!
I am not familiar to deal with S4 objects in R, so this question can be
stupid, but I hope I can get an answer. :P
I'm trying to extract what are the response and explanatory variables from a
Binary Tree and Random Forest.
I could already extract the response variable from a Binary Tree using the
response method specified on documentation. But Random Forest didn't had a
similar
2010 Jul 09
2
Ctree Question
Hello,
I've 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,
2011 Apr 27
1
ctree and survival problem
Dear all,
I was intrigued by the ctree command and wanted to check it out. I first ran the demo with example(ctree) and did get the survival graphs in the end. Upon doing this with my own data and yielding a "Invalid operation on a survival time" I tried to rerun example(ctree) and now I also get "Invalid operation on a survival time" after the example runs plot(GBSG2ct)...