I have a code that is running perfectly fine. But I have a filter option here at the side. Once I click on "Month" I should see the plots. But currently what is happening is that as soon as open the app the plots are displayed(this should not happen)
---
title: "Untitled"
output:
flexdashboard::flex_dashboard:
orientation: rows
vertical_layout:
runtime: shiny
source_code: embed
---
library(flexdashboard)
library(readxl)
library(ggplot2)
library(reshape)
library(flexdashboard)
df <- structure(list(A = structure(c(1L, 4L, 6L, 1L, 8L, 2L, 7L, 3L,
5L, 5L, 1L, 8L, 2L, 7L, 2L), .Label = c("asd", "dfg", "fgdsgd",
"fsd", "gdfgd", "gs", "sdfg", "sf"), class = "factor"), B = c(29L,
24L, 46L, 50L, 43L, 29L, 32L, 24L, 35L, 39L, 33L, 47L, 53L, 26L,
31L), C = structure(c(8L, 5L, 1L, 6L, 3L, 2L, 9L, 7L, 6L, 3L,
2L, 9L, 8L, 8L, 4L), .Label = c("asd", "er", "fg", "gf", "gfd",
"gfg", "qw", "sf", "tr"), class = "factor"), D = c(36L, 56L,
39L, 26L, 56L, 35L, 27L, 31L, 33L, 45L, 34L, 27L, 43L, 40L, 56L
), E = structure(c(9L, 4L, 3L, 4L, 2L, 7L, 10L, 8L, 6L, 2L, 1L,
10L, 9L, 9L, 5L), .Label = c("er", "fg", "g", "gd", "gf", "gfg",
"gtd", "qw", "sf", "tr"), class = "factor"), F = c(44L, 34L,
37L, 23L, 37L, 51L, 28L, 36L, 33L, 31L, 39L, 43L, 25L, 37L, 43L
), num = 1:15), row.names = c(NA, -15L), class = "data.frame")
Summary {data-width=650}
==========
Month/Day{.sidebar}
-------------------
```{r}
selectInput("Interval","Intervals",choices = c("","Day","Month","Weekly","Hourly"))
```
Row
----------
### B Value
```{r}
gauge(paste(sum(df$B)),min = 0,max = 1000)
```
### D Value
```{r}
gauge(paste(sum(df$D)),min = 0,max = 1000)
```