This is handy for those of you that have particularly large figures or tables, that would fit better in landscape. The Rotating package, as the name suggests allows you to rotate any objects by a given angle.
You will of course need to add the line
in the preamble.
If you simply want to rotate by 90 degrees anti-clockwise, you will need to use
If you want to rotate by a specific angle, use
Note that you can insert a negative angle to rotate it the other way.
In order to rotate captions as well the code
will do the job. This will however put the table/figure on a separate page.