stat_abline {ggplot2}R Documentation

stat\_abline

Description

Add a line with slope and intercept

Usage

stat_abline(mapping = NULL, data = NULL, geom = "abline", position = "identity", 
    ...)

Arguments

mapping

mapping between variables and aesthetics generated by aes

data

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

geom

geometric used by this layer

position

position adjustment used by this layer

...

ignored

Details

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

Value

A layer

Author(s)

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

See Also

Examples

## Not run: 
# See geom_abline for examples

## End(Not run)

[Package ggplot2 version 0.8.9 Index]