View source: R/opt_create_graphs.R
opt_create_graphs | R Documentation |
Create graphs and store them into pdf file
opt_create_graphs(x, outp_path, graph_type = "pdf")
x |
|
outp_path |
|
graph_type |
|
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
graphic output
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.