View source: R/show_tbbimatrix.R
show_tbbimatrix | R Documentation |
Plot a matrix of Tampa Bay Benthic Index scores over time by bay segment
show_tbbimatrix(
tbbiscr,
bay_segment = c("HB", "OTB", "MTB", "LTB", "TCB", "MR", "BCB", "All", "All (wt)"),
yrrng = c(1993, 2023),
alph = 1,
txtsz = 3,
family = NA,
rev = FALSE,
position = "top",
plotly = FALSE,
width = NULL,
height = NULL
)
tbbiscr |
input data frame as returned by |
bay_segment |
chr string for the bay segment, one to many of "HB", "OTB", "MTB", "LTB", "TCB", "MR", "BCB", "All", "All (wt)" |
yrrng |
numeric indicating year ranges to evaluate |
alph |
numeric indicating alpha value for score category colors |
txtsz |
numeric for size of text in the plot |
family |
optional chr string indicating font family for text labels |
rev |
logical if factor levels for bay segments are reversed |
position |
chr string of location for bay segment labels, default on top, passed to |
plotly |
logical if matrix is created using plotly |
width |
numeric for width of the plot in pixels, only applies of |
height |
numeric for height of the plot in pixels, only applies of |
Additional summaries are provided for the entire bay, as a summary across categories ("All") and a summary weighted across the relative sizes of each bay segment ("All (wt)").
A ggplot
object showing trends over time in TBBI scores for each bay segment if plotly = FALSE
, otherwise a plotly
object
tbbiscr <- anlz_tbbiscr(benthicdata)
show_tbbimatrix(tbbiscr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.