Skip to content

Instantly share code, notes, and snippets.

View andreagrioni's full-sized avatar

Andrea Grioni andreagrioni

View GitHub Profile
@andreagrioni
andreagrioni / group_by_and_ggplot.R
Created March 30, 2022 11:54 — forked from ctufts/group_by_and_ggplot.R
dplyr group_by and ggplot example
plot_df <-df %>% group_by(feature) %>%
do(
plots = ggplot(data = .) + aes(x = xcol, y = ycol) +
geom_point() + ggtitle(.$feature)
)
# show plots
plot_df$plots