epiforecasts / socialmixr

R package for deriving social mixing matrices from survey data.
http://epiforecasts.io/socialmixr/
Other
38 stars 10 forks source link

Updated plot_matrix() function, resolved bug in load_survey and some minor updates. #133

Closed lwillem closed 1 month ago

lwillem commented 1 month ago

The plot_matrix function previously relied on the deprecated image.plot() from the fields package, which was only used for a single plotting function. This dependency has now been resolved by switching to the base image function and explicitly setting the margins for the main plot and the legend within the plot_matrix() function.

A bug in load_survey() has been resolved, which occurred when the provided files did not include a reference file in JSON format.

The check() function has been updated to account for the possibility that the participant's age can be provided as a range. This previously led to unsuccessful checks in the existing code.

Additionally, some minor textual changes have been made to the documentation, ensuring that the contact matrix consistently retains dim.names.

lwillem commented 1 month ago

Okay, thank you. I will do that next time.