I want my graphs, text and images to appear in a particular order as I am writing a data analysis project for university in R-Studio.
However, when I output to .pdf, the graphs, images and text appear jumpled up.
I was wondering if you would be able to help.
I have tried adding fig.show='hold' to the top of my code chunk.
Expected:
Heading1 Text1 Graph1 Image1
Heading2 Text2 Graph2 Image2
Heading3 Text3 Graph3 Image3
Actual:
Heading1 Text1 Graph3 Image1
Heading2 Text2 Graph2 Image2
etc.
In short, some graphs and images appear not in the same orders as the order I have constructed my document before knitting it to pdf.