Skip to contents

Make sigverse overlay visualisation interactive

Usage

sig_make_interactive(
  gg,
  width_svg = 12,
  height_svg = NULL,
  rescale = FALSE,
  width = 1
)

Arguments

gg

the plot returned from any sigverse visualisation

width_svg, height_svg

The width and height of the graphics region in inches. The default values are 6 and 5 inches. This will define the aspect ratio of the graphic as it will be used to define viewbox attribute of the SVG result.

If you use girafe() in an 'R Markdown' document, we recommend not using these arguments so that the knitr options fig.width and fig.height are used instead.

rescale

If FALSE, graphic will not be resized and the dimensions are exactly those of the svg. If TRUE the graphic will be resize to fit its container

width

widget width ratio (0 < width <= 1).

Value

a ggiraph interactive visualisation