[R] Creating 3d partial dependence plots

Liaw, Andy andy_liaw at merck.com
Wed Mar 20 14:01:23 CET 2013


It needs to be done "by hand", in that partialPlot() does not handle more than one variable at a time.  You need to modify its code to do that (and be ready to wait even longer, as it can be slow).

Andy
 
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Jerrod Parker
Sent: Sunday, March 03, 2013 7:08 PM
To: r-help at r-project.org
Subject: [R] Creating 3d partial dependence plots

Help,

I've been having a difficult time trying to create 3d partial dependence
plots using "rgl".  It looks like this question has been asked a couple
times, but I'm unable to find a clear answer googling.  I've tried creating
x, y, and z variables by extracting them from the partialPlot output to no
avail.  I've seen these plots used several times in articles, and I think
they would help me a great deal looking at interactions.  Could someone
provide a coding example using randomForest and rgl?  It would be greatly
appreciated.

Thank you,
Jerrod Parker

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Notice:  This e-mail message, together with any attachme...{{dropped:11}}



More information about the R-help mailing list