geom_quantile {ggplot2}R Documentation

geom\_quantile

Description

Add quantile lines from a quantile regression

Usage

geom_quantile(mapping = NULL, data = NULL, stat = "quantile", 
    position = "identity", lineend = "butt", linejoin = "round", 
    linemitre = 1, na.rm = FALSE, ...)

Arguments

mapping

mapping between variables and aesthetics generated by aes

data

dataset used in this layer, if not specified uses plot dataset

stat

statistic used by this layer

position

position adjustment used by this layer

lineend

Line end style (round, butt, square)

linejoin

Line join style (round, mitre, bevel)

linemitre

Line mitre limit (number greater than 1)

na.rm

NULL

...

other arguments

Details

This page describes geom\_quantile, see layer and qplot for how to create a complete plot from individual components.

Value

A layer

Aesthetics

The following aesthetics can be used with geom\_quantile. Aesthetics are mapped to variables in the data with the aes function: geom\_quantile(aes(x = var))

Advice

This can be used as a continuous analogue of a geom\_boxplot.

Author(s)

Hadley Wickham, http://had.co.nz/

See Also

Examples

## Not run: 
# See stat_quantile for examples

## End(Not run)

[Package ggplot2 version 0.8.9 Index]