Description Usage Arguments Details Value
View source: R/vegetation-figures.R
Histogram of LPI canopy cover
1 2 3 | HistogramCanopyPercentCover(conn, path.to.data, spring, field.season,
data.source = "database", plot.title, sub.title, x.lab, y.lab,
breaks = seq(0, 100, by = 10), ymax)
|
conn |
Database connection generated from call to |
path.to.data |
The directory containing the csv data exports generated from |
spring |
Spring code to generate a plot for, e.g. "LAKE_P_BLUE0". |
field.season |
Optional. Field season name to filter on, e.g. "2019". |
data.source |
Character string indicating whether to access data in the spring veg database ( |
plot.title |
Optional custom plot title. Leave blank to use a sensible default. Use "" to omit the title. |
sub.title |
Optional custom plot subtitle. Leave blank to use a sensible default. Use "" to omit the subtitle. |
x.lab |
Optional X axis label. Leave blank to use a sensible default. Use "" to omit the axis label. |
y.lab |
Y axis label. Leave blank to use a sensible default. Use "" to omit the axis label. |
breaks |
Optional numeric vector giving histogram bin boundaries. Defaults to |
ymax |
Optional maximum y limit. |
Only includes data from visits labeled 'Primary.' Counts both plant canopy and other canopy (e.g. litter) as cover. Does not take into account the number of canopy layers, only presence/absence of canopy at a point. I.e., a point with a single plant counts the same as a point with multiple plants in multiple strata. Percent cover is calculated only from points at which data were collected - if only three points were recorded for a transect and one of them had canopy cover, that transect would have 33.3
A ggplot object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.