Created
August 10, 2019 23:34
-
-
Save chichacha/9cd624e1d94bf6feed667a475598c67b to your computer and use it in GitHub Desktop.
Playing around with ggforce package
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(tidyverse) | |
| library(ggforce) | |
| df <- tibble() %>% | |
| expand(x=c(0:32), y=c(0:16)) | |
| df %>% | |
| sample_n(nrow(df)-1) %>% | |
| ggplot(aes(x=x,y=y)) + | |
| geom_delaunay_tile(fill="#ffffffae", | |
| radius=unit(1,"mm"), expand=unit(-0.8,"mm")) + | |
| theme_void()+ | |
| theme(panel.background = element_rect(fill="#000000de")) + | |
| coord_fixed() | |
| ggsave("~/Downloads/geom_delaunay_tile_sample.png", width=16, height=9) |
Author
chichacha
commented
Aug 10, 2019

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment