View source: R/site_timeline.R
site_timeline | R Documentation |
Creates a ggplot2 plot of all sites that meet the user-specified site code (i.e., three letter abbreviation) and/or habitat criteria. See lter_sites
for the full set of site information including accepted site codes and habitat designations (unrecognized entries will trigger a warning and be ignored). Lines are grouped and colored by habitat to better emphasize possible similarities among sites
site_timeline(sites = NULL, habitats = NULL, colors = NULL)
sites |
(character) three letter site code(s) identifying site(s) of interest |
habitats |
(character) habitat(s) of interest. See |
colors |
(character) colors to assign to the timelines expressed as a hexadecimal (e.g, #00FF00). Note there must be as many colors as habitats included in the graph |
(ggplot2) plot object of timeline of site(s) that meet user-specified criteria
# Make the full timeline of all sites with default colors by supplying no arguments
site_timeline()
# Or make a timeline of only sites that meet certain criteria
site_timeline(habitats = c("grassland", "forest"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.