Create a list of flextable objects to display Seasonal Kendall results in the NERRS reserve level template
create_sk_flextable_list(
sk_result,
stations,
param,
trend_col = c("#247BA0", "#A3DFFF", "#D9D9D9", "white"),
font_col_default = "#444E65",
font_sz_stn = 6,
font_sz_result = 12,
font_sz_head = 6,
ht_head = 0.28,
ht_body = 0.202,
is_swmp = TRUE,
stn_name = NULL,
stn_abbrev = NULL,
par_name = NULL
)
Returns a list of flextable
objects
a data.frame
of reformatted results from sk_seasonal
chr, vector of stations to be displayed
chr, vector of parameters to be displayed
chr, a four element vector that specifies colors for increasing, decreasing, no change, and insufficient data trends
chr, default color to be used for trend table
int, specify the font size of displayed station names
int, specify the font size of the displayed results
int, specify the font size of the table header row
num, specify the cell height of the table body rows. Units for this parameter are in inches.
num, specify the cell height of the table header row. Units for this parameter are in inches.
logical, are the station names and parameter names consistent with SWMP station and parameter names? If either of these conditions is false then this parameter should be set to FALSE
and then the user should define stn_name
, stn_abbrev
, and par_name
. default is TRUE
.
chr, a list of full station names that the user would like to add to the trend table (e.g., "Cat Point")
chr, a list of station abbreviations that the user would like to add to the trend table (e.g., "CP" as an abbreviation for Cat Point).
chr, a list of parameter names to be used if the names to not match standard CDMO parameters.
Julie Padilla
This function is intended for internal use with the NERRS reserve level reporting scripts. Using the results from the reserve level trend analysis, create_sk_flextable_list
creates a list of two flextable
objects to be displayed in the NERRS reserve level template. The first flextable
in the list contains the two-letter station IDs for each station and the full location name of each station. The second table lists the seasonal kendall results and the names of the parameters of interest.