This function generates a Bland-Altman plot. This function
requires two paired data sets as input (same length), and uses sm_statBlandAlt()
to compute statistical values necessary for a Bland Altman plot. For more
information on these values, please type ?sm_statBlandAlt.
The plot automatically uses sm_classic() theme.
The upper dashed line indicates the upper limit (mean_diff + 1.96*sd), the middle
dashed line indicates the mean difference between the
two samples, and the lower dashed line indicates the lower limit
(mean_diff - 1.96*sd).
To add a legend, you will need to add sm_classic(legends = TRUE).
To customise the figure, you can add more geom objects.