| geom_args | R Documentation |
Prints the required and optional ... arguments accepted by a geometry
when used with hd_make(). This is the primary discoverability tool
for geometry-specific arguments that do not appear in hd_make()'s
signature.
geom_args(type = NULL)
type |
Character. Geometry name, e.g. |
A data frame of argument metadata, invisibly. The primary purpose is the side-effect of printing.
hd_make() uses ... for all geometry-specific arguments so its own
signature stays clean regardless of how many geometries are registered.
The trade-off is that users cannot see available args from hd_make()
alone. geom_args() solves that: it reads the required_args and
optional_args fields registered for each geometry and presents them
in a readable table.
geom_args("line")
geom_args("ranked_bar")
geom_args("arearange")
geom_args() # all registered geometries
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.