scmanual: Scale: manual

View source: R/scale-manual.r

scmanualR Documentation

Scale: manual

Description

This scale function allows you complete control over the scale.

Usage

scmanual(
  plot,
  variable = "x",
  name = "",
  breaks = NULL,
  labels = as.character(breaks),
  grob = function(x) grob_point(x, unique = FALSE)
)

Arguments

plot

plot

variable

variable ("x" or "y")

name

namen of the scale (used in the legend)

breaks

set breaks manually

labels

character vector of break labels

grob

grob function to use when drawing legend

Details

Supply labels and breaks to produce a legend.


hadley/ggplot1 documentation built on Dec. 1, 2024, 11:23 a.m.