[R] Rotating characters in text

Jim Lemon jim at bitwrit.com.au
Wed Jun 13 12:01:43 CEST 2012


On 06/12/2012 11:49 PM, Stuart Rosen wrote:
> For labelling a plot, I am trying to rotate a character string using
> text() so that characters are upright and reading down, for example, ...
>
> L
> i
> k
> e
>
> t
> h
> i
> s
> .
>
> It appears that par crt does not work with text. Does anyone have any
> other suggestions. Thanks!
>
Hi Stuart,
Is this what you want?

plot(1:5)
text(3,3,"L\ni\nk\ne\n\nt\nh\ni\ns\n")

Jim



More information about the R-help mailing list