ggi {ggfacto}R Documentation

Pass a MCA plot into a html interactive plot

Description

Pass a MCA plot into a html interactive plot

Usage

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,
  ...
)

Arguments

plot

The plot, created with ggmca or ggca.

width

The width in centimeters. Default to printing device's size.

height

The height in centimeters. Default to printing device's size.

keep_ratio

By default, the height is forced based of the relative size of the MCA's axes. Set to FALSE to avoid this behavior.

savewidget

Should the html widget be saved on disk ?

dir

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.

name

The name of the file to save.

replace

Replace file ? By default, number added to find a new name.

open

Should the resulting file be opened at once ?

iframe

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.

pixel_width

The width in pixels for widgetframe.

...

Additional arguments to pass to girafe and dsvg. fonts can be used to provide text fonts.

Value

An html plot.


[Package ggfacto version 0.3.0 Index]