df <- data.frame(x = c(rnorm(1000), rnorm(1000, 5, 1)))
df$y <- df$x + rnorm(200, sd=2)
gg_hdrboxplot(df, x)
gg_hdrboxplot(df, x, y, scatterplot = TRUE)
oldfaithful |>
filter(duration < 7000, waiting < 7000) |>
gg_hdrboxplot(duration, waiting, scatterplot = TRUE)
cricket_batting |>
filter(Innings > 20) |>
gg_hdrboxplot(Average)
Run the code above in your browser using DataLab