R/calculate_intensity.R: Added the plot.matrices function and changed some function to make it work

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>