study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points()
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points_jitter()
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points_beeswarm()
# Changing arguments
study |>
tidyplot(x = treatment, y = score, color = treatment) |>
add_data_points_jitter(jitter_width = 1)
animals |>
tidyplot(x = weight, y = size) |>
add_data_points(white_border = TRUE)
animals |>
tidyplot(x = weight, y = size) |>
add_data_points(alpha = 0.4)
# Rasterization
animals |>
tidyplot(x = weight, y = size) |>
add_data_points(rasterize = TRUE, rasterize_dpi = 50)
# Data subsetting
animals |>
tidyplot(x = weight, y = size) |>
add_data_points() |>
add_data_points(data = filter_rows(size > 300), color = "red")
Run the code above in your browser using DataLab