Skip to content

Instantly share code, notes, and snippets.

@stmarcin
stmarcin / quick_gtfs_map_r5r
Created October 22, 2021 19:51
quick and dirty map to test new {r5r} function transit_network_to_sf()
# settings & libraries
library(r5r)
library(sf)
library(dplyr)
library(ggplot2)
# used but not loaded
# library(eurostat)
# library(here)
# library(rJava)
# library(osmextract)
@stmarcin
stmarcin / no_white_plot.R
Last active May 28, 2021 07:43
Remove white margins in the saved ggplot with no-white backround and coord_fixed() in #rstats
library(ggplot2)
library(patchwork)
# example with coord_fixed() ------------------------------------------------------------------
my_plot <- ggplot(data = iris,
aes(x = Sepal.Length,
y = Sepal.Width)) +
geom_point(color = "yellow") +
@stmarcin
stmarcin / README.md
Last active May 10, 2021 16:30
CSS Named Colors