My R markdown document contains solely plots and tables. Pages that contain both tables and plots dont display correctly; the plots overlap the margin at the bottom of the page and are cut off (example: https://imgur.com/a/nwNOL1T). I experimented with float parameters and there was no effect. I tried specifying a new page before the images but also no effect. I've had a lot of trouble finding information about this issue, any help is appreciated.
EDIT: I think this issue comes from the use of the file longtable.sty, which has a known issue with causing images to float. Theres a patched version of longtable.sty that I used, which didn't seem to make a difference. Then I switched from using kable to xtable. With xtable, all the images are fully plotted on the page, although they still overlap with the page number.