opt_create_graphs {lazytrade} | R Documentation |
Function to create summary graphs of the trading results
Description
Create graphs and store them into pdf file
Usage
opt_create_graphs(x, outp_path, graph_type = "pdf")
Arguments
x |
|
outp_path |
|
graph_type |
|
Details
bar graph and time series optionally written to the pdf file. File is named with a date of analysis to the location specified by the user
Value
graphic output
Examples
library(lazytrade)
library(readr)
library(dplyr)
library(magrittr)
library(lubridate)
library(ggplot2)
data(DFR)
dir <- normalizePath(tempdir(),winslash = "/")
# create pdf file with two graphs
opt_create_graphs(x = DFR, outp_path = dir)
# only show time series plot
opt_create_graphs(x = DFR, graph_type = 'ts')
[Package lazytrade version 0.5.4 Index]