plot-methods               package:ROC               R Documentation

_p_l_o_t _m_e_t_h_o_d _f_o_r _R_O_C _c_u_r_v_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     plot method for ROC curves

_M_e_t_h_o_d_s:

     _x = _r_o_c_c plots an ROC curve object, with additional parameters
          available: {

          _s_h_o_w._t_h_r_e_s_h (_l_o_g_i_c_a_l): should marker threshold values be
               plotted?

          _j_i_t (_l_o_g_i_c_a_l): should plotted points be jittered?

          _a_d_d (_l_o_g_i_c_a_l): increment to current plot?

          _l_i_n_e (_l_o_g_i_c_a_l): plot points or lines?

          _t_h_r_e_s_h_C_e_x (_n_u_m_e_r_i_c): if showing threshold values, set
               character expansion in 'text' call to this value

          _t_h_r_e_s_h_Y_s_h (_n_u_m_e_r_i_c): if showing threshold values, add this
               quantity to y coordinate of curve to plot the threshold
               value (should be negative for printing below point)

          _t_h_r_e_s_h_D_i_g (_n_u_m_e_r_i_c): if showing threshold values, use this as
               the digits parameter to 'round' to display the threshold

          ... extra parameters passed to base  'plot', 'lines' or
               'points' as needed

_E_x_a_m_p_l_e_s:

     set.seed(123)
     R1 <- rocdemo.sca( rbinom(40,1,.3), rnorm(40), dxrule.sca,
        caseLabel="new case", markerLabel="demo Marker" )
     plot(R1, line=TRUE, show.thresh=TRUE, lwd=2, threshDig=2)
     R2 <- rocdemo.sca( rbinom(40,1,.3), rnorm(40), dxrule.sca,
        caseLabel="new case", markerLabel="demo Marker" )
     plot(R2, line=TRUE, add=TRUE, col="green", lwd=2 )
     R3 <- rocdemo.sca( rbinom(40,1,.4), rnorm(40), dxrule.sca,
        caseLabel="new case", markerLabel="demo Marker" )
     points(R3, col="red", pch=19)

