Last chance! 50% off unlimited learning
Sale ends in
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)
(ggplot2) plot object of timeline of site(s) that meet user-specified criteria
(character) three letter site code(s) identifying site(s) of interest
(character) habitat(s) of interest. See unique(lter_sites$habitat)
(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
# 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"))
Run the code above in your browser using DataLab