Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggside-ggproto-facets

Extending base ggproto classes for ggside


Description

S3 class that converts old Facet into one that is compatible with ggside. Can also update ggside on the object. Typically, the new ggproto will inherit from the object being replaced.

check_scales_collapse is a helper function that is meant to be called after the inherited Facet's compute_layout method

sidePanelLayout is a helper function that is meant to be called after the inherited Facet's compute_layout method and after check_scales_collapse

map_data_ggside is the mapping function used to replace all map_data method on FacetSideNull, FacetSideGrid, and FacetSideWrap. It is exported for conviences of extensibility.

Usage

as_ggsideFacet(facet, ggside)

check_scales_collapse(data, params)

sidePanelLayout(layout, ggside)

map_data_ggside(data, layout, params)

Arguments

facet

Facet ggproto Object to replace

ggside

ggside object to update

data

data passed through ggproto object

params

parameters passed through ggproto object

layout

layout computed by inherited ggproto Facet compute_layout method

Value

ggproto object that can be added to a ggplot object

Extended Facets

The following is a list ggplot2 facets that are available to use by ggside base.


ggside

Side Grammar Graphics

v0.0.1.3
MIT + file LICENSE
Authors
Justin Landis [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.