include_graph: Include graph file in R Markdown or Quarto document.

View source: R/include_graph.R

include_graphR Documentation

Include graph file in R Markdown or Quarto document.

Description

Use this function to include graph file in R Markdown or Quarto document.

Usage

include_graph(path=".",chunk="",graph="")

Arguments

path

Object or a character string representing the path(s) to the TeX (default: ".")

chunk

Name of the gretl chunk that generates the TeX file.

graph

Name of the graph and its extension

Value

Set of gretl (open-source software for Econometrics) outputs

See Also

Other important functions: eng_gretl(), exec_gretl(), exec_inp(), gretlR, import_kable(), include_tex(), write_inp()

Examples

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)

gretlR documentation built on May 1, 2022, 5:06 p.m.