I am using packages gbm and dismo to create regression tree models in R. I first create the model:
gen_1 <- gbm.step(data = cray_data, gbm.x = 14:23, gbm.y = 11, family = "bernoulli", tree.complexity = 3, learning.rate = 0.01, bag.fraction = 0.5)
Then create the plots for this model (gen_1):
p <- gbm.plot(gen_1, n.plots=6, write.title=FALSE)
I need to export the data from these plots (p) in an excel file; not the jpeg created, but the data that it has been created from.
I have been trying things like write.table but I am relatively new to R and haven't had any luck. Any help would be greatly appreciated.