This function creates a label data frame to be used by plotting functions that label selected points.
createLabelDFTemplate(
df,
xCol = 1,
yCol = 2,
labeledPoints = NULL,
labelOutside = FALSE,
labXThr = NULL,
labYThr = NULL,
adjFunX = identity,
adjFunY = identity,
compFunX = `>=`,
compFunY = `>=`
)A label data frame.
A data frame.
Column representing the x axis.
Column representing the y axis.
Point labels to be displayed on the plot. Default is
NULL, entailing that point labels will be displayed on the basis
of labXThr and labYThr, if at least one of them is not
NULL.
Display labels for points specified by
labeledPoints even if they fall outside the boundaries imposed by
labXThr and labYThr. Ignored if labeledPoints is
NULL or both labXThr and labYThr are NULL.
Threshold used to plot labels based on xCol values.
Threshold used to plot labels based on yCol values.
Function used to adjust xCol values. Default is
identity (no adjustment will be performed).
Function used to adjust yCol values. Default is
identity (no adjustment will be performed).
Function used for the selection of xCol values
based on labXThr.
Function used for the selection of yCol values
based on labYThr.