plot_scatterplot(iris, by = "Species")
# Plot skewed data on log scale
set.seed(1)
skew <- data.frame(replicate(5L, rbeta(1000, 1, 5000)))
plot_scatterplot(skew, by = "X5", ncol = 2L)
plot_scatterplot(skew, by = "X5", scale_x = "log10",
scale_y = "log10", ncol = 2L)
# Plot with `geom_jitter`
plot_scatterplot(iris, by = "Species",
geom_jitter_args = list(width = NULL)) # Turn on with default settings
plot_scatterplot(iris, by = "Species",
geom_jitter_args = list(width = 0.1, height = 0.1))
if (FALSE) {
# Customize themes
library(ggplot2)
plot_scatterplot(
data = mpg,
by = "hwy",
geom_point_args = list(size = 1L),
theme_config = list("axis.text.x" = element_text(angle = 90)),
ncol = 4L
)
}
Run the code above in your browser using DataLab