Can't control position of tables and figures in knitted pdf document

You'll need to look at the kableExtra package. You're right that your tables and plots are 'floating' so you need to 'hold' them in position.

You can take a look at this similar question her Control order of output chunks in PDF document

1 Like