Skip to content

Commit

Permalink
iNZightTSLegacy::seasonplot
Browse files Browse the repository at this point in the history
  • Loading branch information
chrk623 committed Jun 1, 2024
1 parent 9cecce1 commit 625ce06
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
24 changes: 12 additions & 12 deletions panels/F2_TimeSeriesLegacy/2_timeseries-panel-server.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ observe({
tryCatch(
{
ts.para$tsObj <- iNZightTSLegacy::iNZightTS(temp,
var = variable.names(),
time.col =
which(colnames(temp) == "time")
var = variable.names(),
time.col =
which(colnames(temp) == "time")
)
},
warning = function(w) {
Expand All @@ -428,9 +428,9 @@ observe({
tryCatch(
{
ts.para$tsObj <- iNZightTSLegacy::iNZightTS(temp,
var = variable.names(),
start = c(input$TS.timeStartPeriod, input$TS.timeStartSeason),
freq = input$TS.timeFreqNum
var = variable.names(),
start = c(input$TS.timeStartPeriod, input$TS.timeStartSeason),
freq = input$TS.timeFreqNum
)
},
warning = function(w) {
Expand Down Expand Up @@ -915,7 +915,7 @@ output$timeseries_plot <- renderPlot({
# print(w)
# },
error = function(e) {
cat("Handled error in timseries plot\n")
cat("Handled error in timseries plot1\n")
print(e)
}, finally = {}
))
Expand Down Expand Up @@ -967,7 +967,7 @@ output$saveTimeplot <- downloadHandler(
)
},
error = function(e) {
cat("Handled error in timseries plot\n")
cat("Handled error in timseries plot2\n")
print(e)
}, finally = {}
))
Expand Down Expand Up @@ -1021,7 +1021,7 @@ output$plotly_tsmain <- renderPlotly({
g
},
error = function(e) {
cat("Handled error in timseries plot\n")
cat("Handled error in timseries plot3\n")
}, finally = {}
))
}
Expand Down Expand Up @@ -1053,7 +1053,7 @@ output$plotly_tsmainnw <- renderUI({
)
},
error = function(e) {
cat("Handled error in timseries plot\n")
cat("Handled error in timseries plot4\n")
print(e)
}, finally = {}
))
Expand Down Expand Up @@ -1081,7 +1081,7 @@ output$seasonal_plot <- renderPlot({
input$time_info == 2) {
suppressWarnings(tryCatch(
{
g <- seasonplot(
g <- iNZightTSLegacy::seasonplot(
ts.para$tsObj,
ylab = input$provide_ylab,
xlab = input$provide_xlab,
Expand Down Expand Up @@ -1133,7 +1133,7 @@ output$saveSeasonalplot <- downloadHandler(
input$time_info == 2) {
suppressWarnings(tryCatch(
{
seasonplot(
iNZightTSLegacy::seasonplot(
ts.para$tsObj,
ylab = input$provide_ylab,
xlab = input$provide_xlab,
Expand Down
1 change: 1 addition & 0 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ shinyServer(function(input, output, session) {
quick = tabPanel("Quick explore", uiOutput("quick.explore")),
time_series = tabPanel("Time Series (Legacy)",
# value = "timeSeries",
# uiOutput("timeseries.legacy.panel")
uiOutput("timeseries.panel")
),
model = tabPanel("Model Fitting",
Expand Down

0 comments on commit 625ce06

Please sign in to comment.