density.gradientForest | R Documentation |
Extracts Gaussian kernel density estimates for a specified physical variable.
## S3 method for class 'gradientForest'
density(x, predictor, ...)
## S3 method for class 'combinedGradientForest'
density(x, predictor, gridded=F, gf.name, ...)
x |
an object of class |
predictor |
name of predictor variable. |
gridded |
if |
gf.name |
name of the |
... |
further arguments passed to or from other methods. |
Provides Gaussian kernel density estimates for a specified physical variable.
N. Ellis, CSIRO, Cleveland, Australia. <Nick.Ellis@csiro.au>
Ellis, N., Smith, S.J., and Pitcher, C.R. (2012) Gradient Forests: calculating importance gradients on physical predictors. Ecology, 93, 156–168.
gradientForest
, ~~~
data(CoMLsimulation)
preds <- colnames(Xsimulation)
specs <- colnames(Ysimulation)
f1 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs, ntree=10)
density(f1,preds[1])
f2 <- gradientForest(data.frame(Ysimulation,Xsimulation), preds, specs[1:6+6], ntree=10)
f12 <- combinedGradientForest(west=f1,east=f2)
density(f12,preds[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.