qplot                package:ggplot2                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, z=NULL, ..., data, facets = . ~ ., margins=FALSE, geom = "point", stat=list(NULL), position=list(NULL), xlim = c(NA, NA), ylim = c(NA, NA), log = "", main = NULL, xlab = deparse(substitute(x)), ylab = deparse(substitute(y)))

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

       x: x values

       y: y values

       z: z values

     ...: other arguments passed on to the geom functions

    data: data frame to use (optional)

  facets: facetting formula to use

 margins: whether or not margins will be displayed

    geom: geom to use (can be a vector of multiple names)

    stat: statistic to use (can be a vector of multiple names)

position: position adjustment to use (can be a vector of multiple
          names)

    xlim: limits for x axis (aesthetics to range of data)

    ylim: limits for y axis (aesthetics to range of data)

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

    main: character vector or expression for plot title

    xlab: character vector or expression for x axis label

    ylab: character vector or expression for y axis label

_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:

     # Use data from data.frame
     qplot(mpg, wt, data=mtcars)
     qplot(mpg, wt, data=mtcars, colour=cyl)
     qplot(mpg, wt, data=mtcars, size=cyl)
     qplot(mpg, wt, data=mtcars, facets=vs ~ am)

     # Use data from workspace environment
     attach(mtcars)
     qplot(mpg, wt)
     qplot(mpg, wt, colour=cyl)
     qplot(mpg, wt, size=cyl)
     qplot(mpg, wt, facets=vs ~ am)

     # Use different geoms
     qplot(mpg, wt, geom="path")
     qplot(factor(cyl), wt, geom=c("boxplot", "jitter"))

