normplot | R Documentation |
Normal probability plot
normplot(data, var, breaks = seq(0.1, 0.9, 0.1), linecolor = "red")
data |
a data frame |
var |
the variable to plot ( |
breaks |
the breaks for the y-axis |
linecolor |
the color of the normal probability line |
a normal probability plot (GGPlot2 object)
library(tibble)
df <- tibble(
xn = rnorm(100, mean=20, sd=5),
xu = runif(100, min=0, max=40)
)
df %>% normplot(xn)
df %>% normplot(xu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.