Learn R Programming

rrtable (version 0.1.0)

add_plot: Add plot into a document object

Description

Add plot into a document object

Usage

add_plot(mydoc, plotstring, top = 2)

Arguments

mydoc

A document object

plotstring

String of an R code encoding a plot

top

top position of plot

Value

a document object

Examples

Run this code
# NOT RUN {
require(rrtable)
require(officer)
require(rvg)
require(magrittr)
read_pptx() %>% add_text(title="Plot") %>% add_plot("plot(iris)")
# }

Run the code above in your browser using DataLab