Description Usage Arguments Value Examples
Returns normal QQ plots for a set of power transformations. If there are groups in the data, transformations can be applied separately to each of them.
1 2 3 4 5 6 7 8 9 10 |
df |
dataframe |
vble |
numeric variable in df to be transformed |
group |
optional character or factor grouping variable in df. Defaults to NULL. |
taus |
vector of numeric values for the power transformations (0 is considered to be the log transform) |
xlabel |
x-axis label |
ylabel |
y-axis label |
nrow |
number of rows for facet_wrap, only applied when group is NULL. |
... |
parameters to be passed to stat_qq(), such as size, color, shape. |
a ggplot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(dplyr)
# Without groups
fusion %>%
filter(nv.vv == "VV") %>%
gg_pt(time)
fusion %>%
filter(nv.vv == "VV") %>%
gg_pt(time, taus = c(-0.25, -0.5, -1, 0),
xlabel = "Cuantiles normales", ylabel = "Valores transformados",
nrow = 3, color = "red")
# With groups
gg_pt(fusion, time, nv.vv, taus = c(-0.5, -0.25, 0, 0.25, 0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.