-
-
Save nemochina2008/634ff8352191ba41eff489a1c9c02aea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(patchwork) | |
library(ggplot2) | |
library(purrr) | |
library(dplyr) | |
library(glue) | |
map( | |
5:8, | |
~iris %>% | |
filter(Petal.Length < .x) %>% | |
ggplot() + | |
aes(Petal.Length, Sepal.Width, colour = Sepal.Length) + | |
geom_point(size = 6) + | |
scale_colour_gradientn( | |
colours = viridis::viridis(100), | |
limits = c(1, 8) | |
) + | |
labs( | |
title = glue("Filter on Petal.Length < {.x}") | |
) | |
) %>% | |
reduce(`+`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment