powered by
Normal probability plot
normplot(data, var, breaks = seq(0.1, 0.9, 0.1), linecolor = "red")
a normal probability plot (GGPlot2 object)
a data frame
the variable to plot (data column)
data
the breaks for the y-axis
the color of the normal probability line
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