These functions compute the position of contour labels
label_placement_fraction(frac = 0.5)label_placement_n(n = 2)
label_placement_random(seed = 42, n = 1)
label_placement_all()
label_placement_flattest(n = 1, ref_angle = 0)
label_placement_minmax(direction = c("vertical", "horizontal"))
A numeric vector with values between 0 and 1 representing
where in the contour to put labels (i.e. frac = 0.5
puts labels
at the midpoint).
Number of labels to put.
Seed to use for randomly choosing where to put labels.
Angle (in degrees counter-clockwise from East) to try to approximate labels.
Direction in which to compute the maximum and minimum.