I have been working on data visualization of a dataset.
I've found a baseplot version that allow me to visualize the effect of pre- and post treatment.
I would like to know if there is ggplot version of this plot.
> dput(data)
structure(list(ID = c("far001", "far002", "far003", "far004",
"far005", "far006", "far007", "far008", "far009", "far010"),
HBA1Cpre = c(7, 8, 7.5, 9, 8.1, 7.9, 7.3, 7.4, 7.8, 7.1),
HBA1Cpost = c(6.5, 6.6, 6.8, 7, 6.3, 6.9, 6.7, 7.1, 7, 6.5
)), row.names = c(NA, -10L), class = c("tbl_df", "tbl", "data.frame"
))
matplot(t(data.frame(HBA1Cpre,HBA1Cpost)), type="b", xaxt="n", pch=19, col=1, lty=1, ylab="HBAIC(%)")

