This function is used to create column plot in the Shiny app.

colPlot(data = covid, date = input$end_date2, color = "red", varName, title)

Arguments

data

Input dataset.

date

End date.

color

Color of the columns in the plot.

varName

Variable name. Recommend user enter either cumulative_cases or cumulative_deaths here.

title

Optional. Title of the col plot.