pretty_labels: Create pretty labels useful to visualise discrete intervals

Description Usage Arguments Value Author(s)

View source: R/pretty_labels.R

Description

The function creates pretty labels for the breaks used in discrete scales in ggplot2

Usage

1
pretty_labels(breaks, separator_character = ",")

Arguments

breaks

Vector of breaks' values

separator_character

Character that is used to separate the values of the range shown in the legend. Default is ",".

Value

A caharacter vector with all the labels. The labels' lenght is equals to the length of the provided breaks +2, the extremes.

Author(s)

Matteo De Felice


matteodefelice/panas documentation built on March 4, 2020, 4:19 a.m.