percX: Values at a given percentage of the axis

View source: R/percX.R

percXR Documentation

Values at a given percentage of the axis

Description

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

Usage

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 on plot (such as annotation). Note that percentages refer to the entire plot window.

Functions

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

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

Examples

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


inSileco/graphicsutils documentation built on Sept. 12, 2022, 11:13 p.m.