A figure that I created in knitr to pdf is displayed correctly when it is rendered within knitr, but is not correct when the code is printed to pdf. This is the correct fugure
The attached file is a copy of the figure as retrieved from the "keep pdf" file.
jointHbA1c-1.pdf (4.9 KB)
Note that the right ends of the two lines are too low (incorrect) in the second file.
Any idea what is causing this? More importantly, is there a way to correct this misrendering of a graphic file being rendered to a pdf file?
Running Windows 10 up to date, R 4.0.3 in RStudio Version 1.3.1073, knitr, markdown, ggplot2 all up to date. I am using cairo_pdf, but I get the same issue when I use the default knitr pdf. Is there any other information that I can give you that will help?
Thanks for any help you can give me.