View source: R/plot_functions.R
| qq_plot | R Documentation |
qq_plot constructs quantile-quantile plots against the standard normal distribution
(also known as quantile-normal plots).
qq_plot(data, y, size = 0.7)
data |
A data frame. |
y |
A numerical variable in the data frame. |
size |
Size of the marker. |
data(kfm, package = "ISwR")
require(sjlabelled, quietly = TRUE)
kfm <- kfm |>
var_labels(
dl.milk = "Breast-milk intake (dl/day)",
sex = "Sex",
weight = "Child weight (kg)",
ml.suppl = "Milk substitute (ml/day)",
mat.weight = "Maternal weight (kg)",
mat.height = "Maternal height (cm)"
)
kfm |>
qq_plot(dl.milk)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.