Use this function to create an `EViews` graph in R and R Markdown
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)
An EViews workfile
A vector of series names contained in an `EViews` workfile, or an R dataframe.
Object or a character string representing the name of an `EViews` workfile.
Object or a character string representing the name of an `EViews` workfile page.
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.
Object or a character string of any of the acceptable `EViews` graphical commands, such as line
, bar
, pie
.
Object or a character string of any of the acceptable `EViews` graphical options, such as ""
, m
, s
.
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.
Object or a character string representing the start date
. It should be left blank for undated (when the frequency
is u
).
A vector of options to be passed to `EViews` save
command. It can values like "t=png"
,-color
and so on.
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.
A vector containing `EViews` graph procs
such as datelabel
, align
A vector containing `EViews` axis label formats such as format("YY")
. Using datelabel
in graph_procs
overwrites this argument.
Logical, whether to merge two or more graphs on one page. Setting merge_graphs=FALSE
produces `EViews` graph for each series separately.
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()
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