Skip to content

Encapsulate or export {wrap/grid}_as_facets_list(). #5925

Closed
@teunbrand

Description

@teunbrand

For relatively straightforward facet extensions that borrow the grid/wrap layout structure (but don't directly re-use the facet_wrap()/facet_grid() constructors), it would be convenient to access the wrap_as_facets_list() and grid_as_facets_list() functions. It is notoriously inconvenient to copy over these functions because they depend on a cascade of internal functions that also would need to be copied.

This cascade can be visualised as follows:

flow::flow_view_deps(ggplot2:::wrap_as_facets_list)
flow::flow_view_deps(ggplot2:::grid_as_facets_list)

For grid_as_facets_list():

image

If these are not suitable for export to users, could we encapsulate them in the ggproto classes so that they are accessible to extension developers?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions