| tendency_diag | R Documentation | 
Tendency diagram from a data table containing tercile forecasts.
tendency_diag(
  dt,
  f = c("below", "normal", "above"),
  o = tc_cols(dt),
  by = NULL,
  pool = setdiff(dimvars(dt), by),
  dim.check = TRUE
)
| dt | Data table containing tercile forecasts | 
| f | column names of the prediction columns | 
| o | column name of the observation column | 
| by | column names of grouping variables. Default is to not group. | 
| pool | column names of pooling variables (used for the dimension check). Default is all dimvars. | 
| dim.check | Logical. If TRUE, the function checks whether the columns in by and pool span the entire data table. | 
If by == NULL a gg object, otherwise a list of gg objects that can be plotted by ggpubr::ggarrange (for example)
dt = data.table(below = c(0.5,0.3,0),
                normal = c(0.3,0.3,0.7),
                above = c(0.2,0.4,0.3),
                tc_cat = c(-1,0,0),
                lon = 1:3)
print(dt)
pp = tendency_diag(dt)
if(interactive()) plot(pp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.