Returns the values of either x-axis or y-axis for a given percentage.

percX(percentage = 90)

percY(percentage = 90)

Arguments

percentage

The percentage of the axis for which the values is returned.

Details

This function intends to ease the positioning of additional marks such as text when axis have not common axis. The user must be aware that its use becomes tricky when drawing multi-panels plots.

Functions

  • percX: Returns the values of x-axis for a given percentage.

  • percY: Returns the values of y-axis for a given percentage.

Examples

text(x=percX(90), y=percY(90), label='cool')