Learn R Programming

metR (version 0.9.1)

label_placement_fraction: Functions to place contour labels

Description

These functions compute the position of contour labels

Usage

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"))

Arguments

frac

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

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.