new_guide: Guide constructor

View source: R/guide-.R

new_guideR Documentation

Guide constructor

Description

A constructor function for guides, which performs some standard compatibility checks between the guide and provided arguments.

Usage

new_guide(..., available_aes = "any", super)

Arguments

...

Named arguments that match the parameters of super$params or the theme elements in super$elements.

available_aes

A vector of character strings listing the aesthetics for which the guide can be drawn.

super

The super class to use for the constructed guide. Should be a Guide class object.

Value

A Guide ggproto object.


hadley/ggplot2 documentation built on April 28, 2024, 11:17 p.m.