Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1000 Bytes

File metadata and controls

27 lines (20 loc) · 1000 Bytes

Spatial data visualization

This is a workshop written for UCSB MEDS Winter 2023. The rendered template document is here.

Libraries

You will need to have the following libraries installed:

# general use
library(here) # file organization
library(tidyverse) # manipulating
library(sf) # reading in spatial data, etc.
library(janitor) # cleaning variable names
library(lterdatasampler) # data source
library(randomcoloR) # random color generator

# Javascript package wrappers
library(leaflet) # interactive map
library(plotly) # interactive plots
library(ggiraph) # more interactive plots
library(echarts4r) # even more interactive plots

Caveats

If you want to use custom icons and have the legends disappear as you click group layers, that only works in a Shiny app per this Stack Overflow post.