50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

adas.utils (version 1.0.0)

normplot: Normal probability plot

Description

Normal probability plot

Usage

normplot(data, var, breaks = seq(0.1, 0.9, 0.1), linecolor = "red")

Value

a normal probability plot (GGPlot2 object)

Arguments

data

a data frame

var

the variable to plot (data column)

breaks

the breaks for the y-axis

linecolor

the color of the normal probability line

Examples

Run this code
library(tibble)
df <- tibble(
  xn = rnorm(100, mean=20, sd=5),
  xu = runif(100, min=0, max=40)
)

df %>% normplot(xn)
df %>% normplot(xu)

Run the code above in your browser using DataLab