Pass a MCA plot into a html interactive plot
ggi(
plot = ggplot2::last_plot(),
width = NULL,
height = NULL,
keep_ratio = TRUE,
savewidget = FALSE,
dir = NULL,
name = "Plot",
replace = FALSE,
open = rlang::is_interactive(),
iframe = NULL,
pixel_width,
...
)
An html plot.
The plot, created with ggmca or ggca.
The width in centimeters. Default to printing device's size.
The height in centimeters. Default to printing device's size.
By default, the height is forced based of the relative
size of the MCA's axes. Set to FALSE
to avoid this behavior.
Should the html widget be saved on disk ?
If saved as file, the directory in which to save the html widget.
Default to temporary directory. Set global option "ggfacto.export_dir"
with link[base:options](options)
to change default directory.
The name of the file to save.
Replace file ? By default, number added to find a new name.
Should the resulting file be opened at once ?
Create an html frame around the plot to ensure fixed
dimensions. Useful when opening the plot in a web browser (but will produce a blank
graph with rmarkdown). This is default behavior with savewidget = TRUE
.
Require package widgetframe
.
The width in pixels for
widgetframe
.
Additional arguments to pass to girafe
and
dsvg
. fonts
can be used to provide text fonts.