qplot_on_normal: Plot a normed value on the standard normal

View source: R/feedback_plotting.R

qplot_on_normalR Documentation

Plot a normed value on the standard normal

Description

Pass in a z-standardised value (x - Mean)/SD, get a standard normal distribution.

Usage

qplot_on_normal(
  normed_value,
  ylab = "Percentage of other people with this value",
  xlab = "",
  colour = "blue",
  x_ticks = c("--", "-", "0", "+", "++")
)

Arguments

normed_value

a z-standardised value

ylab

Y-axis label, defaults to "Percentage of other people with this value"

xlab

X-axis label, empty by default, useful for labeling the plotted trait

colour

defaults to blue

x_ticks

the ticks labels for -2,1,0,1 and 2 SDs around the mean, default to minuses, pluses and the average sign

Examples

normed_value = scale(x = 20, center = 14, scale = 5) # standardise value
qplot_on_normal(normed_value, xlab = "Extraversion")

rubenarslan/formr documentation built on July 6, 2024, 5:46 a.m.