Skip to content

fieldmuseum/HumboldtChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Humboldt Chart scripts

...scripts to visualize Darwin Core Event core datasets with Humboldt extensions as trees, networks, etc following examples from the R Graph Gallery.

Examples:

Interactive Event-tree chart generated with the event_tree app which references humboldtTree.R

Setup / How-to:

  1. Clone or download this repo, and open its 'Rproj' file in RStudio.

  2. Install packages if needed:

# Paste and run this in the RStudio console (lower-left panel)
install.packages(c("collapsibleTree", "shiny",
                   "igraph", "readr", "RColorBrewer",
                   "data.table", "data.tree", "ggraph"))
  1. Copy your input-CSV to the "data_input" folder

  2. Name the input-CSV "FM_Humboldt_data.csv"

  3. Run a charting script. e.g. in the RStudio console, type:

# To see a network-diagram:
`source("humboldtNetwork.R")`

# To launch the interactive tree-diagram shiny-app:
`shiny::runApp('event_tree')`

Generates a collapsible tree/dendrogram to illustrate parent-child relationships

Generates a less organized network for clusters/relationships

Resources

Shiny App How-to