Create an interactive graphic to be used in a web browser.
This function is now deprecated, users should
now use function girafe()
.
ggiraph(
code,
ggobj = NULL,
pointsize = 12,
width = 0.75,
width_svg = 6,
height_svg = 5,
tooltip_extra_css = NULL,
hover_css = NULL,
tooltip_opacity = 0.9,
tooltip_offx = 10,
tooltip_offy = 0,
tooltip_zindex = 999,
zoom_max = 1,
selection_type = "multiple",
selected_css = NULL,
...
)
Plotting code to execute
ggplot object to print. Argument code
will
be ignored if this argument is supplied.
the default pointsize of plotted text in pixels, default to 12.
widget width ratio (0 < width <= 1).
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.
extra css (added to position: absolute;pointer-events: none;
)
used to customize tooltip area.
css to apply when mouse is hover and element with a data-id attribute.
tooltip opacity
tooltip x offset
tooltip y offset
tooltip css z-index, default to 999.
maximum zoom factor
row selection mode ("single", "multiple", "none") when widget is in a Shiny application.
css to apply when element is selected (shiny only).
arguments passed on to dsvg()