Description Usage Arguments Details Value Examples
Returns Tukey's Mean-Difference plot for paired data (both variables must be measured in the same scale).
1 2 3 4 5 6 7 8 9 10 11 12 | gg_tmd_paired(
df,
vble1,
vble2,
xlabel = "Mean",
ylabel = "Difference",
loess = TRUE,
loess_span = 1,
loess_degree = 1,
loess_family = "gaussian",
...
)
|
df |
dataframe |
vble1, vble2 |
numeric variables to be analized |
xlabel |
label for x-axis, defaults to "Mean" |
ylabel |
label for y-axis, defaults to "Difference" |
loess |
logical; should a loess smoothing curve be added to the coplots? Defaults to TRUE. |
loess_span |
span parameter for loess |
loess_degree |
degree parameter for loess |
loess_family |
famiyly argument for the loess() function |
... |
parameters to be passed to geom_point(), such as size, color, shape. |
Differences are computed as 'vble1 - vble2'.
a ggplot
1 | gg_tmd_paired(ozone, stamford, yonkers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.