label_placers {metR} | R Documentation |
Functions to place contour labels
Description
These functions compute the position of contour labels.
Usage
label_placer_fraction(
frac = 0.5,
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placement_fraction(
frac = 0.5,
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placer_n(n = 2, rot_adjuster = isoband::angle_halfcircle_bottom())
label_placement_n(n = 2, rot_adjuster = isoband::angle_halfcircle_bottom())
label_placer_random(
seed = 42,
n = 1,
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placement_random(
seed = 42,
n = 1,
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placer_all(rot_adjuster = isoband::angle_halfcircle_bottom())
label_placement_all(rot_adjuster = isoband::angle_halfcircle_bottom())
label_placer_flattest(
ref_angle = 0,
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placement_flattest(
ref_angle = 0,
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placer_minmax(
direction = c("vertical", "horizontal"),
rot_adjuster = isoband::angle_halfcircle_bottom()
)
label_placement_minmax(
direction = c("vertical", "horizontal"),
rot_adjuster = isoband::angle_halfcircle_bottom()
)
Arguments
frac |
A numeric vector with values between 0 and 1 representing
where in the contour to put labels (i.e. |
rot_adjuster |
A function that standardizes the rotation angles of the labels. See e.g. isoband::angle_halfcircle_bottom. |
n |
Number of labels to put. |
seed |
Seed to use for randomly choosing where to put labels. |
ref_angle |
Angle (in degrees counter-clockwise from East) to try to approximate labels. |
direction |
Direction in which to compute the maximum and minimum. |
[Package metR version 0.18.1 Index]