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.
The
plot_matrix
function previously relied on the deprecatedimage.plot()
from thefields
package, which was only used for a single plotting function. This dependency has now been resolved by switching to the baseimage
function and explicitly setting the margins for the main plot and the legend within theplot_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
.