# --- Plot using external dataset
# Create a dummy dataset
test <- data.frame(Time = as.Date(paste0("2019-",c(1:12), "-01")),
N = sample(c(5000:7000), 12),
mean = sample(c(4000:5000), 12),
low = sample(c(3000:4000), 12),
high = sample(c(5000:6000), 12))
# Plot the dummy data
plotSeasonality(test,
xvar = "Time",
yvar = "N",
min4years = "low",
max4years = "high",
mean4years = "mean",
year = 2019)
# --- Please see examples in the vignette
browseVignettes(package = "EpiReport")
# --- Plot using the default dataset
getSeason()
Run the code above in your browser using DataLab