⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 varimpplot

📁 本程序是基于linux系统下c++代码
💻
字号:
varImpPlot           package:randomForest           R Documentation

_V_a_r_i_a_b_l_e _I_m_p_o_r_t_a_n_c_e _P_l_o_t

_D_e_s_c_r_i_p_t_i_o_n:

     Dotchart of variable importance as measured by a Random Forest

_U_s_a_g_e:

     varImpPlot(x, sort=TRUE, n.var=min(30, nrow(x$importance)),
                type=NULL, class=NULL, scale=TRUE, 
                main=deparse(substitute(x)), ...) 

_A_r_g_u_m_e_n_t_s:

       x: An object of class 'randomForest'.

    sort: Should the variables be sorted in decreasing order of
          importance?

   n.var: How many variables to show? (Ignored if 'sort=FALSE'.)

type, class, scale: arguments to be passed on to 'importance'

    main: plot title.

     ...: Other graphical parameters to be passed on to 'dotchart'.

_V_a_l_u_e:

     Invisibly, the importance of the variables that were plotted.

_A_u_t_h_o_r(_s):

     Andy Liaw andy_liaw@merck.com

_S_e_e _A_l_s_o:

     'randomForest', 'importance'

_E_x_a_m_p_l_e_s:

     set.seed(4543)
     data(mtcars)
     mtcars.rf <- randomForest(mpg ~ ., data=mtcars, ntree=1000, keep.forest=FALSE,
                               importance=TRUE)
     varImpPlot(mtcars.rf)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -