📄 mdsplot
字号:
MDSplot package:randomForest R Documentation
_M_u_l_t_i-_d_i_m_e_n_s_i_o_n_a_l _S_c_a_l_i_n_g _P_l_o_t _o_f _P_r_o_x_i_m_i_t_y _m_a_t_r_i_x _f_r_o_m _r_a_n_d_o_m_F_o_r_e_s_t
_D_e_s_c_r_i_p_t_i_o_n:
Plot the scaling coordinates of the proximity matrix from
randomForest.
_U_s_a_g_e:
MDSplot(rf, fac, k=2, palette=NULL, pch=20, ...)
_A_r_g_u_m_e_n_t_s:
rf: an object of class 'randomForest' that contains the
'proximity' component.
fac: a factor that was used as response to train 'rf'.
k: number of dimensions for the scaling coordinates.
palette: colors to use to distinguish the classes; length must be the
equal to the number of levels.
pch: plotting symbols to use.
...: other graphical parameters.
_V_a_l_u_e:
The output of 'cmdscale' on 1 - 'rf$proximity' is returned
invisibly.
_N_o_t_e:
If 'k > 2', 'pairs' is used to produce the scatterplot matrix of
the coordinates.
_A_u_t_h_o_r(_s):
Robert Gentleman, with slight modifications by Andy Liaw
_S_e_e _A_l_s_o:
'randomForest'
_E_x_a_m_p_l_e_s:
set.seed(1)
data(iris)
iris.rf <- randomForest(Species ~ ., iris, proximity=TRUE,
keep.forest=FALSE)
MDSplot(iris.rf, iris$Species)
## Using different symbols for the classes:
MDSplot(iris.rf, iris$Species, palette=rep(1, 3), pch=as.numeric(iris$Species))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -