timeSeriesDygraphs: Dygraphs Time Series Chart

Description Usage Arguments Details Examples

View source: R/myModules.R

Description

This function is to generates a time series chart using Dygraphs

Usage

1
timeSeriesDygraphs(input, output, session, data, title, yaxis)

Arguments

input

Required Param by Shiny Modules

output

Required Param by Shiny Modues

session

Required Param by Shiny Modules

data

Data with xts format

title

Chart Title

yaxis

y axis Title

Details

This function belongs to server.R script to easily generates a time series chart using Dygraphs. This function has three required params input, output, session that always is used by Shiny Modules. The data param must be in xts format, title param means to the main title of chart and the yaxis param is to set the y axis title. How it used Shiny Modules, The function will be called using the callModule function, the first param is the function to be called, the second param is the identifier used in dygraphObjectUI("id") and the other params are the same after the session param. See the examples please.

Examples

1
2
callModule(timeSeriesDygraphs, "plot1", trmDia_xts, "TRM diaria", "[COP/USD]")
callModule(timeSeriesDygraphs, "plot2", trmDia_xts, "TRM diaria", "[COP/USD]")

sflorezp/modulesRReport documentation built on May 14, 2019, 9 a.m.