ggpcp                 package:ggplot                 R Documentation

_P_a_r_a_l_l_e_l _c_o_o_r_d_i_n_a_t_e_s _p_l_o_t.

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

     Generate a plot ``template'' for a paralell coordinates plot.

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

     ggpcp(data, vars=names(data), scale="range", ...)

_A_r_g_u_m_e_n_t_s:

    data: data frame

    vars: variables to include in parallel coordinates plot

   scale: scaling function, one of "range", "var" or "I"

     ...: other arguments passed on plot creation

_D_e_t_a_i_l_s:

     One way to think about a parallel coordinates plot, is as plotting
     the data after it has transformation been transformed to gain a
     new variable.  This function does this using 'melt'.

     This gives us enormous flexibility as we have separated out the
     type of drawing (lines by tradition) and can now use any of the
     existing grob functions.  In particular this makes it very easy to
     create parallel boxplots, as shown in the example.

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

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

     ggline(ggpcp(mtcars))
     ggline(ggpcp(mtcars, scale="var"))
     ggline(ggpcp(mtcars, vars=names(mtcars)[3:6], formula= . ~cyl, scale="I"))
     ggboxplot(ggpcp(mtcars, scale="I"))
     ggline(ggpcp(mtcars, vars=names(mtcars[2:6])))
     p <- ggpcp(mtcars, vars=names(mtcars[2:6]), formula=.~vs)
     ggline(p)
     ggline(p, aes=list(colour=mpg)) 

