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.
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.