View source: R/includeGraphic.R
includeGraphic.grViz | R Documentation |
Graphs created in a loop or by some packages like Diagrammer are not always automatically included in the final document produced from a RMarkdown document. This function helps including graphics in documents.
## S3 method for class 'grViz'
includeGraphic(gr, nr = 0)
## S3 method for class 'dgr_graph'
includeGraphic(gr, nr = 0)
includeGraphic(gr, nr = 0)
## Default S3 method:
includeGraphic(gr, nr = 0)
gr |
graph |
nr |
optional number when creating more than one graph in a chunk |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.