[R] rotating points on a plot

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Oct 14 04:32:14 CEST 2008

On Mon, 13 Oct 2008, Richard E. Glor wrote:

> Anybody know how to rotate shapes generated with the 'points' function?  I'm 
> trying to place points around a radial diagram such that the y-axis of 
> individual shapes are oriented with the radii of the circle rather than the 
> y-axis of the larger plot area.  Perhaps something analogous to the 'srt' and 
> 'crt' functions for text that appear under 'par'?

There is no provision for this in the graphics engine.  Assuming you are 
talking about pch=1:14, they are just drawn as line segments and could be 
done at R level by lines().  So I suggest writing an R-level emulation and 
rotating the coordinate system in your emulation.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list