#' daily_plot UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd 
#'
#' @importFrom shiny NS tagList 
mod_daily_plot_ui <- function(id){
  ns <- NS(id)
  plotly::plotlyOutput(ns("daily_plot"))
}
    
#' daily_plot Server Function
#'
#' @noRd 
mod_daily_plot_server <- function(input, output, session, rv, country = NULL, global, variable = "confirmed_cases"){
  ns <- session$ns
  
  output$daily_plot <- 
    plotly::renderPlotly({
      pd <- PlotterDaily$new(variable)
      pd$ingest_data(rv$daily_country)
      pd$plot()
    })
  
}
## To be copied in the UI
# mod_daily_plot_ui("daily_plot_ui_1")
    
## To be copied in the server
# callModule(mod_daily_plot_server, "daily_plot_ui_1")
 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.