result_plot: Add a ggplot2 graph to docx object

Description Usage Arguments Details Value See Also

Description

result_plot add a ggplot2 graph to the docx object which can then be inserted into Microsoft Word

Usage

1
result_plot(mydoc, graph, title = NULL)

Arguments

mydoc

A docx object

graph

A ggplot2 object

title

An optional character string, if not NULL (default), the title will be added above the plot

Details

This function takes a ggplot2 graph and adds the plot to the docx object which is returned. The docx object can then be written to a Microsoft Word document.

Value

A docx object

See Also

addPlot


bgulbis/BGTools documentation built on May 12, 2019, 8:21 p.m.