data(tips)
lineup_qq(tips, "total_bill", dist = "normal") # Normal distribution
lineup_qq(tips, "total_bill", dist = "gamma") # Gamma distribution
# Some distributions require that the parameters be specified:
tips$proportion_tips <- tips$tip/(tips$total_bill+tips$tip)
lineup_qq(tips, "size", dist = "beta", params = list(shape1 = 0.1, shape2 = 0.2))
# Style the plot using color settings and ggplot2 functions:
lineup_qq(tips, "total_bill",
dist = "gamma",
color_points = "chocolate",
color_lines = "cyan",
alpha_points = 0.25) +
ggplot2::theme_minimal()
Run the code above in your browser using DataLab