Hitters                 package:vcd                 R Documentation

_H_i_t_t_e_r_s

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

     This data set is deduced from the 'Baseball' fielding data set:
     fielding performance basically includes the numbers of Errors,
     Putouts and Assists made by each player. In order to reduce the
     number of observations, the data has been compressed by
     calculating the mean number of errors, putouts and assists for
     each team and for only 6 positions (1B, 2B, 3B, C, OF, SS and UT).
     In addition, each of these three variables has been scaled to a
     common range by dividing each variable by the maximum of the
     variable.

_U_s_a_g_e:

     data(Hitters)

_F_o_r_m_a_t:

     A data frame with 154 observations and 4 variables.

     _P_o_s_i_t_i_o_n_s factor indicating the field position (1B=first baseman,
          2B=second baseman, 3B=third baseman, C=catcher,
          OF=outfielder, SS=Short Stop, UT=Utility Players),

     _P_u_t_o_u_t_s occur when a fielder causes an oppsing player to be tagged
          or fored out,

     _A_s_s_i_s_t_s are credited to other fielders involved in making that
          putout, and

     _E_r_r_o_r_s count the errors made by a player.

_S_o_u_r_c_e:

     SAS System for Statistical Graphics, First Edition, P. A2.3

_R_e_f_e_r_e_n_c_e_s:

     M. Friendly (2000), _Visualizing Categorical Data_. SAS Institute,
     Cary, NC.

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

     data(Hitters)
     attach(Hitters)

     colors <- c("black","red","green","blue","red","black","blue")
     pch <- substr(levels(Positions), 1, 1)
     ternaryplot(
                 Hitters[,2:4],
                 pch = as.character(Positions),
                 col = colors[as.numeric(Positions)],
                 main = "Baseball Hitters Data"
                 )
     legend(
            0.7, 0.85,
            legend = c("POSITION(S)", levels(Positions)),
            pch = c("", pch),
            col = c(NA, colors)
            )

       detach(Hitters)

