data_tsplotly: Create a lineplot of a time series

Usage Arguments

View source: R/functions.R

Usage

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"
)

Arguments

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 "

\item

n_obsA number equal to the observations inside the time series (default = 26).

\item

intervalA character string which refers to the time interval between each observation (default = "quarter").

\item

mainA character string for the title of the plot (default = 'Time series plot').

\item

ynameA character string for the name of the x-axe (default = 'Number of sales').

\item

xnameA 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')


unimi-dse/9768672c documentation built on Feb. 16, 2020, 5:45 a.m.