scale_linetype {ggplot2}R Documentation

scale_linetype

Description

Scale for line patterns

Usage

scale_linetype(name=NULL, expand=c(0, 0.75), labels=NULL, ...)

Arguments

name name of scale to appear in legend or on axis
expand numeric vector of length 2, giving multiplicative and additive expansion factors
labels character vector giving labels associated with breaks
... ignored

Details

This page describes scale_linetype, 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: 
    ec_scaled <- data.frame(
      date = economics$date, 
      rescaler(economics[, -(1:2)], "range")
    )
    ecm <- melt(ec_scaled, id = "date")
    
    qplot(date, value, data=ecm, geom="line", group=variable)
    qplot(date, value, data=ecm, geom="line", linetype=variable)
    qplot(date, value, data=ecm, geom="line", colour=variable)
    
    # The linetype scale currently has no options, so there's
    # no point in adding it manually
## End(Not run)

[Package ggplot2 version 0.6 Index]