knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
safecastR package provides functions for interacting with the Safecast API.
if (!require("remotes")) install.packages("remotes") remotes::install_github("javiereliomedina/safecastR")
library(safecastR) dat <- get_measurements(dist = 100, lat = 52.520, long = 13.405) dat
library(ggplot2) ggplot() + geom_sf(data = dat, aes(colour = value)) + scale_colour_viridis_c() + theme_bw()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.