dot-knit_plot: Knit volker plots

.knit_plotR Documentation

Knit volker plots

Description

Automatically calculates the plot height from chunk options and volker options.

Usage

.knit_plot(pl)

Arguments

pl

A ggplot object with vlkr_options. The vlk_options are added by .to_vlkr_plot() and provide information about the number of vertical items (rows) and the maximum.

Details

Presumptions:

  • a screen resolution of 72dpi

  • a default plot width of 7 inches = 504px

  • a default page width of 700px (vignette) or 910px (report)

  • an optimal bar height of 40px for 910px wide plots. i.e. a ratio of 0.04

  • an offset of one bar above and one bar below

Value

Character string containing a html image tag, including the base64 encoded image.


volker documentation built on April 12, 2025, 9:16 a.m.