View source: R/label_placement.R
| run_placement_pass | R Documentation |
Single placement pass: measure tags, call the Rust FFI, return the placement records and the canvas bbox returned by eunoia.
run_placement_pass(
centers,
container_data,
shapes,
labels_gp,
quantities_gp,
annotations_gp,
padding,
placement_opts,
do_complement_label,
xlim,
ylim,
n_vertices,
label_precision
)
centers |
the per-region tag data frame from |
container_data |
the complement (container) region's data |
shapes |
the diagram's |
labels_gp, quantities_gp, annotations_gp |
per-component
|
padding |
vertical separation between tag components, as a
|
placement_opts |
resolved placement options; see
|
do_complement_label |
whether the complement gets a tag too |
xlim, ylim |
native scales of the measurement viewport |
n_vertices |
number of vertices used to discretize each shape |
label_precision |
number of decimals used when rendering quantities |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.