Description Details Methods Super class Methods
The role of the renderer isn't solidified in ggr6. Currently it's an abstraction of various graphics backend that allow ggr6 to focus on the grammar (rather than on rendering graphical objects). Currently it has methods for rendering graphical primitives, methods for finding the aesthetics that are supported by each primitive, methods for constructing default scales for each aesthetic, and methods for assembling panels.
Realistically, each renderer needs its own collection of Geom, Facet, Coord, and Scale subclasses. The role of ggr6 is to provide robust superclasses for these such that the subclasses can focus on rendering. This package provides IdentityRenderer for testing and GraphicsRenderer, which uses the base graphics package to render graphics.
Renders nothing
This method will (should) be moved to the Coord or Panel object in the near future
This method should be moved to the Builder or Facet object in the near future
Because the mapped values of (for example) a colour scale vary between scales
Assemble a character vector of aesthetic names that can be used
with a given render_<geom_type>()
function.
Get a list of default values (in aesthetic space) for a given geometry type.
render_points()
Renderer$render_points(x, y, feature = seq_along(x), ...)
x, y
Finite coordinates
feature
An ID that whose unique values can be used to identify and/or separate features
render_path()
Renderer$render_path(x, y, feature, part = 1L, ...)
x, y
Finite coordinates
feature
An ID that whose unique values can be used to identify and/or separate features
part
An ID used to separate parts in a multiline geometry
render_polygon()
Renderer$render_polygon(x, y, feature = 1L, piece = 1L, part = 1L, ...)
x, y
Finite coordinates
feature
An ID that whose unique values can be used to identify and/or separate features
piece
An ID used to separate rings within polygons. The first piece in the row order is interpreted as the outer ring.
part
An ID used to separate parts in a multipolygon geometry
render_text()
Renderer$render_text(x, y, label, feature = seq_along(x), ...)
x, y
Finite coordinates
feature
An ID that whose unique values can be used to identify and/or separate features
render_null()
Renderer$render_null()
render_stack()
Renderer$render_stack(...)
...
A series of render_*()
calls
render_panel()
Renderer$render_panel(panel, ...)
panel
A Panel object.
...
A series of render_*()
calls
render_panels()
Renderer$render_panels(graphic, ...)
graphic
A Graphic (or Builder?) object
...
A series of render_*()
calls
default_scale()
Renderer$default_scale(x, aesthetic)
x
A vector of values in user data space
aesthetic
An aesthetic type (e.g., colour, x, y)
aesthetics()
Renderer$aesthetics(geom_type)
geom_type
A string that follows the pattern render_<geom_type>()
,
where render_<geom_type>()
is a method of the Renderer.
default_aesthetics()
Renderer$default_aesthetics(geom_type)
geom_type
A string that follows the pattern render_<geom_type>()
,
where render_<geom_type>()
is a method of the Renderer.
clone()
The objects of this class are cloneable with this method.
Renderer$clone(deep = FALSE)
deep
Whether to make a deep clone.
ggr6::Renderer
-> IdentityRenderer
render_points()
IdentityRenderer$render_points(x, y, feature = 1L, ...)
render_path()
IdentityRenderer$render_path(x, y, feature = 1L, part = 1L, ...)
render_polygon()
IdentityRenderer$render_polygon(x, y, feature = 1L, piece = 1L, part = 1L, ...)
render_text()
IdentityRenderer$render_text(x, y, label, feature = 1L, ...)
render_null()
IdentityRenderer$render_null()
render_stack()
IdentityRenderer$render_stack(...)
render_panel()
IdentityRenderer$render_panel(panel, ...)
render_panels()
IdentityRenderer$render_panels(graphic, ...)
default_scale()
IdentityRenderer$default_scale(x, aesthetic)
clone()
The objects of this class are cloneable with this method.
IdentityRenderer$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.