[R] Rotating a distribution plot by 90 degrees
Benjamin Otto
b.otto at uke.uni-hamburg.de
Wed Dec 20 11:55:11 CET 2006
Hi,
Can I rotate a plot (e.g. a distribution plot) by 90 degrees? The barplot
function provides the "horiz" command but that's not availeable for the base
package functions. I found an old advice from Paul Murrell on a similar
problem suggesting to use viewports (grid package). Yet I couldn't reproduce
his examples successfully. And going through the examples in the current
grid package help pages left me with the feeling that viewport and the
plot/points function don't match because the latter automatically clears the
old device.
Is there some way to rotate a "plot" at all or am I forced to use the
barplot function instead?
Regards,
Benjamin
P.S.: For further explanation: I would like to plot something like
+-----+-----+
| | |
| 0 | 1 |
| | |
+-----+-----+
| | |
| 2 | 3 |
| | |
+-----+-----+
where image 1 is some function plot in normal mode, image 2 is a function
plot rotated by 90 degrees and image 3 is something depending on the two
functions.
--
Benjamin Otto
Universitaetsklinikum Eppendorf Hamburg
Institut fuer Klinische Chemie
Martinistrasse 52
20246 Hamburg
More information about the R-help
mailing list