Learn R Programming

ggplot2 (version 0.9.1)

discrete_scale: Discrete scale constructor.

Description

Discrete scale constructor.

Usage

discrete_scale(aesthetics, scale_name, palette,
    name = NULL, breaks = waiver(), labels = waiver(),
    legend = NULL, limits = NULL, expand = waiver(),
    na.value = NA, drop = TRUE, guide = "legend")

Arguments

labels
NULL for no labels, waiver() for default labels (labels the same as breaks), a character vector the same length as breaks, or a named character vector whose names are used to match replacement the labels for matching brea