View source: R/include_graph.R
include_graph | R Documentation |
Use this function to include graph file in R Markdown or Quarto document.
include_graph(path=".",chunk="",graph="")
path |
Object or a character string representing the path(s) to the |
chunk |
Name of the |
graph |
Name of the graph and its extension |
Set of gretl
(open-source software for Econometrics) outputs
Other important functions:
eng_gretl()
,
exec_gretl()
,
exec_inp()
,
gretlR
,
import_kable()
,
include_tex()
,
write_inp()
library(gretlR) ## Not run: code=r'(nulldata 500 set seed 13 gretl1 = normal() gretl2 = normal() setobs 12 1980:01 --time-series gnuplot gretl1 --time-series --with-lines --output="line.png" )' exec_gretl(code) include_graph(path="line.png") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.