reedalexandria / interactive-data-vis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:HTML 95.4%Language:JavaScript 4.5%Language:CSS 0.1%Language:SCSS 0.0%