qplot {ggplot}R Documentation

Quick plot.

Description

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

Usage

qplot(x, y = NULL, data, facets = . ~ ., types = "point", col = NULL, size = NULL, glyph = NULL, line_type = NULL, fill = NULL, xlim = c(NA, NA), ylim = c(NA, NA), log = "", main = NULL, xlab = deparse(substitute(x)), ylab = deparse(substitute(y)), ...)

Arguments

x x values
y y values
data grob type(s) to draw (can be a vector of multiple names)
facets vector to use for colours
types vector to use for sizes
col vector to use for glyph types
size vector to use for line type
glyph vector to use for fill colour
line_type limits for x axis (defaults to range of data)
fill limits for y axis (defaults to range of data)
xlim which variables to log transform ("x", "y", or "xy")
ylim character vector or expression for plot title
log character vector or expression for x axis label
main character vector or expression for y axis label
xlab
ylab
...

Details

qplot provides a quick way to create simple plots.

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

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, glyph=cyl, size=wt)

[Package ggplot version 0.3.3 Index]