Description Usage Arguments Details Examples
This function is to generates a time series chart using Dygraphs
1 | timeSeriesDygraphs(input, output, session, data, title, yaxis)
|
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 |
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.
1 2 | callModule(timeSeriesDygraphs, "plot1", trmDia_xts, "TRM diaria", "[COP/USD]")
callModule(timeSeriesDygraphs, "plot2", trmDia_xts, "TRM diaria", "[COP/USD]")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.