data(tips)
lineup_histograms(tips, "total_bill", dist = "normal") # Normal distribution
# Some distributions require that the parameters be specified:
lineup_histograms(tips, "size", dist = "binomial", params = list(size = 6, p = 0.3))
# Style the plot using color settings and ggplot2 functions:
lineup_histograms(tips, "total_bill",
dist = "gamma",
color_bars = "steelblue",
color_lines = "magenta") +
ggplot2::theme_minimal()
Run the code above in your browser using DataLab