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(
object = NULL,
formula = NULL,
data = NULL,
pch = 20,
col = "indianred3",
ylab = NULL,
...
)
object |
When chaining, this holds an object produced in the earlier portions of the chain. Most users can safely ignore this argument. See details and examples. |
formula |
A formula with shape: |
data |
A data frame where the variables in the |
pch |
Point character passed to |
col |
Colour of the reference line, passed to |
ylab |
Optional character passed as label for the y-axis. |
... |
Further arguments passed to |
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)
qq_plot(~ dl.milk | sex, data = kfm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.