I'm using the partial plot function in the Random Forest package
(randomForest).

I want to be able to control the region of values it chooses for the x.var
variable (instead of going from 0 to 100000, I want to go from 0 to 1000).

The problem I'm having is that it seems the only method to do that is to
change xlim.  I could use xlim and n.pt, like:

partialPlot(rf,x.var="myvar",pred.data=rfdata,xlim=c(0,1000),n.pt=1000000)

The problem with using xlim, however, is that it only seems to change the
x-axis after doing the calculations.  In order to get any meaningful graph
of the data for such a small portion of the entire x.var region, I'd have
to increase the density of points plotted by a lot (n.pt).

Because partial plot is an intensive/slow process, this isn't really a
viable solution (takes minutes to create a partial plot already).

Any suggestion?  (besides using plotmo)

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to