import_graph {EviewsR}R Documentation

Import EViews graph objects(s) into R, R Markdown or Quarto.

Description

Use this function to import EViews graph objects(s) into R, R Markdown or Quarto.

Usage

import_graph(
  wf = "",
  page = "*",
  graph = "*",
  graph_procs = "",
  save_options = "",
  save_copy = T,
  save_path = dirname(wf)
)

Arguments

wf

Object or a character string representing the name of an EViews workfile.

page

Object or a character string representing the name of an EViews workfile page.

graph

Name(s) or wildcard expressions of EViews graph object(S)

graph_procs

A vector containing EViews graph procs such as datelabel, align

save_options

A vector of options to be passed to EViews save command. It can take values like "t=png",-c and so on.

save_copy

Logical. Whether to save the copy of the graph objects

save_path

Object or a character string representing the path to the folder to save the EViews graphs. The current working directory is the default save_path. Specify the save_path only if you want the EViews graphs to live in different path from the current working directory.

Value

An EViews workfile

See Also

Other important functions: EviewsR, create_object(), eng_eviews(), eviews_graph(), eviews_import(), eviews_pagesave(), eviews_wfcreate(), eviews_wfsave(), exec_commands(), export_dataframe(), export(), import_equation(), import_kable(), import_series(), import_table(), import_workfile(), import(), rwalk(), set_eviews_path()

Examples

library(EviewsR)
## Not run: 
demo(exec_commands)

# To import all graph objects

import_graph(wf="exec_commands")

# To import only graphs that begin with x:

import_graph(wf="exec_commands",graph="x*")

# To access the graph objects in base R:

# eviewspage-x_graph # graph saved in "figure/" folder

# To get the graph objects in R Markdown or Quarto

# chunkLabel-eviewspage-x_graph # graph saved in "fig.path" folder


## End(Not run)

[Package EviewsR version 0.1.5 Index]