Description Usage Arguments Value
View source: R/geom-isopycnal.R
Automatic labels placement is difficult and infrequently perfect. The
default strategy to place labels uses a similar strategy to
isoband::label_placer_minmax()
except coordinates are constrained
to a fraction of the visible area to keep labels from disappearing
outside the plot bounds.
1 2 3 4 5 | label_placer_isopycnal(
placement = "t",
padding = c(0.025, 0.025),
bounds = c(padding[1], padding[2], 1 - padding[1], 1 - padding[2])
)
|
placement |
A string containing one or more of "t", "b", "l",
or "r". See |
padding |
A proportion of the plot (x, y) that should be excluded
on all sides when choosing label center points. Ignored if
|
bounds |
A vector of xmin, ymin, xmax, ymax, outside which label centers should not exist. |
A function suitable as input to geom_isopycnal()
's
label_placer
argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.