Learn R Programming

EviewsR (version 0.1.2)

eviews_graph: Create an `EViews` graph in R and R Markdown

Description

Use this function to create an `EViews` graph in R and R Markdown

Usage

eviews_graph(series="",wf="",page="",mode="overwrite",graph_command="line",
options="m",frequency="7",start_date="",save_options=c("t=png","d=300","color"),
save_path="",graph_procs=c('textdefault font("Times",20,-b,-i,-u,-s)','align(2,1,1)'),
datelabel="",merge_graphs=FALSE)

Value

An EViews workfile

Arguments

series

A vector of series names contained in an `EViews` workfile, or an R dataframe.

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.

mode

Set `mode="overwrite"` to overwrite existing `EViews` graph objects that match the new `EViews` graph object to be created on the workfile. Set `mode=""` to avoid overwriting exising `EViews` graph object.

graph_command

Object or a character string of any of the acceptable `EViews` graphical commands, such as line, bar, pie.

options

Object or a character string of any of the acceptable `EViews` graphical options, such as "", m, s.

frequency

Object or a character string representing the frequency of a workfile page to be created. Only letters accepted by EViews are allowed. For example u for undated, a for annual, m for monthly and so on.

start_date

Object or a character string representing the start date. It should be left blank for undated (when the frequency is u).

save_options

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

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.

graph_procs

A vector containing `EViews` graph procs such as datelabel, align

datelabel

A vector containing `EViews` axis label formats such as format("YY"). Using datelabel in graph_procs overwrites this argument.

merge_graphs

Logical, whether to merge two or more graphs on one page. Setting merge_graphs=FALSE produces `EViews` graph for each series separately.

See Also

Other important functions: EviewsR, create_object(), eng_eviews(), eviews_import(), eviews_pagesave(), eviews_wfcreate(), eviews_wfsave(), exec_commands(), export(), import_table(), import(), rwalk(), set_eviews_path()

Examples

Run this code
library(EviewsR)
if (FALSE) {
demo(exec_commands)
eviews_graph(wf="EviewsR_exec_commands",page = "page",series="x y",mode = "overwrite",options = "m")

}

Run the code above in your browser using DataLab