Runs a plot on its own Rmarkdown/Quarto
knitr
Chunk. The plot will have its own caption and size, and short captions are placed in the markdown TOC
Expressions cannot be re-used, i.e., each expression must evaluate to the right quantity after the chunk in which the scplot
calls are made is finished, and the new constructed chunk is input. To input and run the constructed chunk:
{r child='scplot.Rmd'}
preceeded and following by 3 back ticks.
Hmisc::putHcap is used to markup regular and short captions cap, scap
. Short caption appears in TOC. If no scap
, then cap
is used for this. To change the putHcap
subsub
argument set options(scplot.subsub='## ')
for example.