check_breaks_and_labels {ggplot2}R Documentation

Check breaks and labels.

Description

Ensure that breaks and labels are the correct format.cd ..

Usage

check_breaks_and_labels(breaks = NULL, labels = NULL)

Arguments

breaks
labels

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

check_breaks_and_labels(NULL, NULL)
check_breaks_and_labels(1:5, NULL)
should_stop(check_breaks_and_labels(labels = 1:5))
check_breaks_and_labels(labels = c("a" = 1, "b" = 2))
check_breaks_and_labels(breaks = c("a" = 1, "b" = 2))
check_breaks_and_labels(1:2, c("a", "b"))

[Package ggplot2 version 0.8.9 Index]