Re: [R] Vertical string with horizontal letters

2012-02-02 Thread Tyler Rinker
com; r-help@r-project.org > Date: Thu, 2 Feb 2012 13:08:17 -0500 > Subject: Re: [R] Vertical string with horizontal letters > > > > One possible solution is to use strsplit to break on each character and then > paste to put in a "\n" after each character. Then wh

Re: [R] Vertical string with horizontal letters

2012-02-02 Thread 538280
There are only a few graphics devices that honor the 'crt' setting to rotate characters differently from the string rotation (postscript is the only one I know of, and then not always). For your specific case you could do something like: > text(1,1, paste( unlist(strsplit('output','')), collapse=

Re: [R] Vertical string with horizontal letters

2012-02-02 Thread Tyler Rinker
One possible solution is to use strsplit to break on each character and then paste to put in a "\n" after each character.  Then when you plot the text should be in the format you desire. x <- "output"y <- unlist(strsplit(x, NULL))p <- cat(paste(y, collapse="\n")) plot.new()text(.5, .5, paste(y,