Skip to content

Instantly share code, notes, and snippets.

@chichacha
Created August 10, 2019 23:34
Show Gist options
  • Save chichacha/9cd624e1d94bf6feed667a475598c67b to your computer and use it in GitHub Desktop.
Save chichacha/9cd624e1d94bf6feed667a475598c67b to your computer and use it in GitHub Desktop.
Playing around with ggforce package
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)
@chichacha
Copy link
Author

geom_delaunay_tile_sample

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