Appends a new block to an existing AlphaVarReportSpec.
Usage
av_report_add_block(
spec,
block_id,
params = list(),
title = NULL,
position = NULL
)Arguments
- spec
An
AlphaVarReportSpec.- block_id
A key from
av_report_registry().- params
A named list of parameter overrides. Defaults from the registry are used for any unspecified parameter.
- title
Optional custom title for this block instance.
- position
Integer position to insert at.
NULL(default) appends to the end.
Examples
spec <- av_report_template_default()
spec <- av_report_add_block(spec, "plot_ridges",
params = list(group_by = "biosample_type"))