Skip to contents

Get ticklabels expressions for percentiles of normal distribution scale plots

Usage

getPercentileTickLabels(ticks)

Arguments

ticks

numeric values of the ticks

Value

Expressions to use in ticklabels input parameter of setXAxis and setYAxis functions

Examples

ticks <- rnorm(5)
getPercentileTickLabels(ticks)
#> [1] "77.348%" "73.343%" "88.647%" "58.623%" "38.327%"

# Get percentile of normal distribution
ticks <- qnorm(seq(1, 9) / 10)
getPercentileTickLabels(ticks)
#> [1] "10%" "20%" "30%" "40%" "50%" "60%" "70%" "80%" "90%"