[R] postscript printer breaking up long strings

tommers scaife.7 at osu.edu
Thu Apr 30 20:50:38 CEST 2009


For a long string in an axis title, or main title the postscript device
breaks apart the long strings into smaller strings.  For example,

> postscript('linebreaktest.eps')
> plot(1,xlab='aReallyLongStringToSeeHowItBreaks',ylab='aReallyLongStringToSeeHowItBreaks')
> for(i in c(.6,1,1.4))text(i,i,'aReallyLongStringToSeeHowItBreaks')
> dev.off()

produces the attached output.
http://www.nabble.com/file/p23322197/linebreaktest.eps linebreaktest.eps 

The most important lines from the eps source are at the end of the file:
********************************************
309.70 36.72 (aReallyLongStr) 0 ta
0.180 (ingT) tb
-1.440 (oSeeHo) tb
-0.180 (wItBreaks) tb gr
30.96 212.50 (aReallyLongStr) 90 ta
0.180 (ingT) tb
-1.440 (oSeeHo) tb
-0.180 (wItBreaks) tb gr
77.04 91.44 743.76 534.96 cl
/Font1 findfont 12 s
0 setgray
1.03 104.76 (aReallyLongStr) 0 ta
0.180 (ingT) tb
-1.440 (oSeeHo) tb
-0.180 (wItBreaks) tb gr
309.70 310.10 (aReallyLongStr) 0 ta
0.180 (ingT) tb
-1.440 (oSeeHo) tb
-0.180 (wItBreaks) tb gr
618.36 515.43 (aReallyLongStr) 0 ta
0.180 (ingT) tb
-1.440 (oSeeHo) tb
-0.180 (wItBreaks) tb gr
*******************************************************
Each string is broken into 4 chunks.  Has anyone else had this problem?

Thanks!
-- 
View this message in context: http://www.nabble.com/postscript-printer-breaking-up-long-strings-tp23322197p23322197.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list