apply.method | R Documentation |
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.
apply.method(method,
d, columns.to.check = c("x",
"y", "groups",
"label"), ...,
debug = FALSE)
method |
Direct labeling Positioning Method. Starting from the data frame of points to plot for the panel, the elements of the Positioning Method list are applied in sequence, and then each row of the resulting data frame is used to draw a direct label. The elements of a Positioning Method list can be
|
d |
Data frame to which we apply the Positioning Method. The x and y columns should be in centimeters (cm), so that Positioning Methods can easily calculate the L2/Euclidean/visual distance between pairs of points. |
columns.to.check |
After applying each Positioning Method list element, we check for the presence of these columns, and if not found we stop with an error. |
... |
Named arguments, passed to Positioning Functions. |
debug |
If TRUE, print each Positioning Method list elmenent and the direct label data.frame that results from its evaluation. |
The final data frame returned after applying all of the items in the Positioning Method list, with x and y in units of cm.
Toby Dylan Hocking
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.