I searched for this and found that with {grid} there are ways to rotate an image, and that for some plots you can play with their rotation (for example plot(x,y) instead of plot(y,x)).
However, I want to know if there is a generic method to rotate a plot in R (one that would work for ANY plot generated in base graphics) ?
I’m reasonably certain that there isn’t a way with base graphics itself to do this generically. There is however the
gridBasepackage which allows one to mix base graphics and grid graphics in a ‘plot’. The vignette for the package has a section on embedding base graphics in gridviewports, so you might look there to see if you can cook up a grid wrapper around your plots and use grid to do the rotation. Not sure if this is a viable route but is, as far as I know, the on only potential route to an answer to your Q.gridBaseis on CRAN and the author is Paul Murrell, the author of the grid package.After browsing the vignette, I note one of the bullets in the Problems and Limitations section on page, which states that it is not possible to embed base graphics into a rotated
gridviewport. So I guess you are out of luck.