powered by
Returns Tukey's Mean-Difference plot for paired data (both variables must be measured in the same scale).
gg_tmd_paired( df, vble1, vble2, xlabel = "Mean", ylabel = "Difference", loess = TRUE, loess_span = 1, loess_degree = 1, loess_family = "gaussian", ... )
dataframe
numeric variables to be analized
label for x-axis, defaults to "Mean"
label for y-axis, defaults to "Difference"
logical; should a loess smoothing curve be added to the coplots? Defaults to TRUE.
span parameter for loess
degree parameter for loess
famiyly argument for the loess() function
parameters to be passed to geom_point(), such as size, color, shape.
a ggplot
Differences are computed as `vble1 - vble2`.
# NOT RUN { gg_tmd_paired(ozone, stamford, yonkers) # }
Run the code above in your browser using DataLab