Fix y-axis labelling for periods
Closed this issue · 1 comments
TimTaylor commented
see labelling issue on y-axis below
library(outbreaks)
library(incidence2)
dat <- ebola_sim_clean$linelist
x2w<- incidence(dat, date_of_onset, interval = "2 weeks")
x2w
#> An incidence2 object: 28 x 2
#> 5829 cases from 2014-04-07 to 2015-05-03
#> interval: 14 days
#> cumulative: FALSE
#>
#> date_index count
#> <period> <int>
#> 1 2014-04-07 to 2014-04-20 2
#> 2 2014-04-21 to 2014-05-04 9
#> 3 2014-05-05 to 2014-05-18 29
#> 4 2014-05-19 to 2014-06-01 34
#> 5 2014-06-02 to 2014-06-15 44
#> 6 2014-06-16 to 2014-06-29 52
#> 7 2014-06-30 to 2014-07-13 72
#> 8 2014-07-14 to 2014-07-27 120
#> 9 2014-07-28 to 2014-08-10 166
#> 10 2014-08-11 to 2014-08-24 255
#> # … with 18 more rows
plot(x2w, color = "white")
Created on 2021-05-20 by the reprex package (v2.0.0)
TimTaylor commented
Now fixed