powered by
plots a flextable, either as a grid grob object or as a raster image and display the result in a new graphics window.
# S3 method for flextable plot(x, method = c("grob", "webshot"), ...)
a flextable object
the method to use for the plot, one of grob or webshot
grob
webshot
additional arguments passed to gen_grob() if method is 'grob' and passed to as_raster() if method is 'webshot'.
gen_grob()
as_raster()
method grob, uses method gen_grob() to convert the flextable into a grid graphics grob object.
method webshot, uses method as_raster() to convert the flextable into a raster object. In that case packages webshot and magick are required.
magick
Other flextable print function: as_raster(), df_printer(), flextable_to_rmd(), gen_grob(), htmltools_value(), knit_print.flextable(), print.flextable(), save_as_docx(), save_as_html(), save_as_image(), save_as_pptx()
df_printer()
flextable_to_rmd()
htmltools_value()
knit_print.flextable()
print.flextable()
save_as_docx()
save_as_html()
save_as_image()
save_as_pptx()
ftab <- flextable(head(mtcars)) ftab <- autofit(ftab) if (FALSE) { plot(ftab) if (require("webshot")) { plot(ftab, method = "webshot") } }
Run the code above in your browser using DataLab