save a flextable as an image and display the result in a new R graphics window.

# S3 method for flextable
plot(x, zoom = 2, expand = 2, ...)

Arguments

x

a flextable object

zoom, expand

parameters used by webshot function.

...

additional parameters sent to as_raster() function

Note

This function requires packages: webshot and magick.

Examples

ftab <- flextable( head( mtcars ) )
ftab <- autofit(ftab)
if (FALSE) {
if( require("webshot") ){
  plot(ftab)
}
}