Learn R Programming

directlabels (version 2.9)

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, columns.to.check = c("x", "y", "groups"), 
    ..., 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.
columns.to.check
After applying each Positioning Function, we check for the presence of these columns, and if not found we stop with an error.
...
Named arguments, passed to Positioning Functions.
debug

Value

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