1 2 3 4 5 6 7 8 9 | data_tsplotly(
dataset,
start_date = "2013-09-30",
n_obs = 26,
interval = "quarter",
main = "Time series plot",
yname = "Number of sales",
xname = "Dates"
)
|
dataset |
A subsetted dataframe which contains one precise time series of interest (to allow for univariate ts). |
start_date |
A character string which refers to the date of the first observation, with format " \itemn_obsA number equal to the observations inside the time series (default = 26). \itemintervalA character string which refers to the time interval between each observation (default = "quarter"). \itemmainA character string for the title of the plot (default = 'Time series plot'). \itemynameA character string for the name of the x-axe (default = 'Number of sales'). \itemxnameA character string for the name of the y-axe (default = 'Dates'). |
The plot for the selected arguments. This function creates a lines+scatter plot of a time series using the R-package 'plotly'. dataset<-data.frame('something'=c(...)) data_tsplotly(dataset$something, main='Graph', yname='Values')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.