Learn R Programming

directlabels (version 2.0)

apply.method: Apply a Positioning Method

Description

Run a Positioning Method list on a given data set. This function contains all the logic for parsing a Positioning Method and sequentially applying its elements to the input data to obtain the label positions. This is useful since it is often much less verbose to define Positioning Methods in list form instead of function form, ex lasso.labels.

Usage

apply.method(method,
d,
debug = FALSE,
...)

Arguments

method
Direct labeling Positioning Method, which is a list comprised of any of the following: (1) a Positioning Function, (2) a character string which is the name of an object that could be used, (3) named values, or (4) a Positioning Method list. Starting fr
d
Data frame to which we apply the Positioning Method.
debug
...
Named arguments, passed to Positioning Functions.

Value

  • The final data frame returned after applying all of the items in the Positioning Method list.