Displaying 1 result from an estimated 1 matches for "rfdat".
Did you mean:
fdat
2009 Sep 24
3
pipe data from plot(). was: ROCR.plot methods, cross validation averaging
...erve:
# get some data
dat <- rnorm(100)
# grab histogram data
hdat <- hist(dat)
hdat #provides details of the hist output
#grab boxplot data
bdat <- boxplot(dat)
bdat #provides details of the boxplot output
# the same works for randomForest
library(randomForest)
data(mtcars)
RFdat <- plot(randomForest(mpg ~ ., mtcars, keep.forest=FALSE, ntree=100), log="y")
RFdat
##But, I can't use this method in ROCR
library(ROCR)
data(ROCR.xval)
RCdat <- plot(perf, avg="threshold")
RCdat
## output: NULL
Does anyone have any tricks for piping or extracting...