qplot                 package:ggplot                 R Documentation

_Q_u_i_c_k _p_l_o_t.

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

     Quick plot is a convenient wrapper function for creating simple
     ggplot plot objects.

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

     qplot(x, y = NULL, data, facets = . ~ ., margins=FALSE, types = "point", colour = NULL, size = NULL, shape = NULL, linetype = NULL, fill = NULL, id=NULL, weight=NULL, xlim = c(NA, NA), ylim = c(NA, NA), log = "", main = NULL, xlab = deparse(substitute(x)), ylab = deparse(substitute(y)), add=NULL, ...)

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

       x: x values

       y: y values

    data: data frame to use (optional)

  facets: facetting formula to use

 margins: grob type(s) to draw (can be a vector of multiple names)

   types: vector to use for colours

  colour: vector to use for sizes

    size: vector to use for shapes

   shape: vector to use for line type

linetype: vector to use for fill colour

    fill: vector to use for ids

      id: vector to use for weights

  weight: limits for x axis (defaults to range of data)

    xlim: limits for y axis (defaults to range of data)

    ylim: which variables to log transform ("x", "y", or "xy")

     log: character vector or expression for plot title

    main: character vector or expression for x axis label

    xlab: character vector or expression for y axis label

    ylab: if specified, build on top of this ggplot, rather than
          creating a new one

     add: other arguments passed on to the grob functions

     ...: 

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

     FIXME: describe how to get more information FIXME: add more
     examples

     'qplot' provides a quick way to create simple plots.

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

     Hadley Wickham <h.wickham@gmail.com>

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

     qplot(LETTERS[1:5], 1:5, type="rect", main="Blah", xlab="Hi")
     qplot(LETTERS[1:5], 1:5, type=c("tile", "point"), main="Blah", xlab="Hi", ylim=c(0,10), col=1:5)
     qplot(wt, mpg, data=mtcars, col=cyl, shape=cyl, size=wt)

