reconhub / outbreaker2

Disease outbreak reconstruction from epidemiological and genetic data
http://www.repidemicsconsortium.org/outbreaker2/
Other
30 stars 20 forks source link

labels argument not working in plot.outbreaker_chains #75

Closed pcdjohnson closed 4 years ago

pcdjohnson commented 4 years ago

The label argument in plot.outbreaker_chains isn't working for some plot types. When labels are supplied the labels on the y axis are still the default of 1:N. I'm using version 1.1.1 (currently both github and CRAN versions are 1.1.1). E.g.

plot(res, type = "t_inf", burnin = 2000, labels = names(dates))
plot(res, type = "kappa", burnin = 2000, labels = names(dates))
plot(res, type = "network", burnin = 2000, min_support = 0.01, labels = names(dates))

names(dates) is a character vector of the same length as dates and dna.

finlaycampbell commented 4 years ago

I will have a look once I have a spare moment, I know this feature isn't implemented yet for type network (though it shouldn't take long to do), perhaps there is a bug for the other two - I'll get back to you!

finlaycampbell commented 4 years ago

This is now fixed as of 283e978fa582df2861f967e98248a304c88b6c26!