ui<-(fluidPage(
# title
titlePanel("Univariate Time Series Plot"),
#input
sidebarLayout(
sidebarPanel
(
# Input: Select a file ----
fileInput("file1", "Choose CSV File",
multiple = TRUE,
accept = c("text/csv",
"text/comma-separated-values,text/plain",
".csv")),
# Input: Checkbox if file has header ----
checkboxInput("header", "Header", TRUE),
# Input: Select separator ----
radioButtons("sep", "Separator",
choices = c(Semicolon = ";",
Comma = ",",
Tab = "\t"),
selected = ","),
tags$hr(),
# Input: Select what to display
selectInput("dataset","Data:",
choices =list(AirPassengers = "AirPassengers", mtcars = "mtcars",
uploaded_file = "inFile"), selected=NULL),
selectInput("variable","Variable:", choices = NULL, selected = NULL),
selectInput("group","Group:", choices = NULL,selected = NULL),
selectInput("plot.type","Plot Type:",
list(linegraph = "linegraph", none = "none")),
selectInput("acfpcf", "acfpacf", list(acf = "acf", pacf = "pacf"
)),
checkboxInput("show.points", "show points", TRUE)
),
# output
mainPanel(
h3(textOutput("caption")),
#h3(htmlOutput("caption")),
uiOutput("plot"),
uiOutput("plot1"),# depends on input
tabsetPanel(
tabPanel("Documentation",
br(),
p("The app name Univariate Time series Analysis signifies a
very simple visualization of univariate time series data"),
p("The R dataset strong(AirPassengers) is used here. The dataset
is first converted to a data frame object since it is a ts object.
The year and index column is been mutated to AirPassengers data."),
br(),
strong("LEFT PANE"),
br(),
p("1) The left pane consists of a browse box to upload files,"),
p("2) The check box to get header of the imported files,"),
p("3) The radio button to select the type of imported files,"),
p("4) The drop down list displaying the data name strong(AirPassengers)
by default and if the file has uploaded from your drive select
upload files from the list,"),
p("5) The variable and group drop down boxes are column names of
the selected data. It is used as a x axis and y axis for plots,"),
p("6) The Plot type box consists of option to get strong(Linegraph or None",),
p("7) Acf and Pacf plots are displayed in main panel by selecting
the required one from acfpacf dropdown list,"),
p("8) The final checkbox gives the option to display the points
in the plotted graph."),
br(),
strong(em("Once the app is opened, it displays the linegraph of the variable x vs
x of AirPassengers data. Choosing the group to Index shows the actual line
chart of Passengers data over time")),
br(),
p("I have provided an example time series dataset in my
github page to try visualizing the plots using my app")
))
)
)))