[R] specifying x-axis scale on random forest variable importance plot

Liaw, Andy andy_liaw at merck.com
Thu Oct 2 21:27:42 CEST 2008


The default range is the range of the variable in the data.  It wouldn't
make much sense to extend beyond that.  If you want to restrict the
range, the varImpPlot() function does return the x-y pairs, so you can
construct your own plot from that.

Andy 

From: A Van Dyke
> 
> i am new to R and using the random forest package.  is there 
> a way to specify
> the x-axis scale range for the variable importance plot?  many thanks.
> 
> -alison
> -- 
> View this message in context: 
> http://www.nabble.com/specifying-x-axis-scale-on-random-forest
> -variable-importance-plot-tp19780560p19780560.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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:12}}



More information about the R-help mailing list