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.


ggplot2 documentation built on June 22, 2024, 11:35 a.m.