flextable (version 0.5.11)

plot.flextable: plot a flextable

Description

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

Usage

# 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

See Also

Other flextable print function: as_raster(), docx_value(), htmltools_value(), knit_print.flextable(), print.flextable(), save_as_docx(), save_as_html(), save_as_image(), save_as_pptx()

Examples

Run this code
# NOT RUN {
ftab <- flextable( head( mtcars ) )
ftab <- autofit(ftab)
# }
# NOT RUN {
if( require("webshot") ){
  plot(ftab)
}
# }

Run the code above in your browser using DataCamp Workspace