Re: [R] Low Pain Unicode Characters in pdf graph?

2011-07-04 Thread Liviu Andronic
On Sun, May 15, 2011 at 3:06 PM, ivo welch ivo.we...@gmail.com wrote: Dear R-experts---is there a relatively low-pain way to get unicode characters into a plot to a pdf device? Have you tried Cairo package or cairo_pdf()? Both are making use of Cairo, which uses UTF-8 and automatically embeds

[R] Low Pain Unicode Characters in pdf graph?

2011-05-15 Thread ivo welch
Dear R-experts---is there a relatively low-pain way to get unicode characters into a plot to a pdf device? pdf(file=cardsymbols.pdf) plot( 0, xlim=c(0,5), ylim=c(0,5), type=n) text(1,1, spades;) text(2,2, hearts;) text(3,3, diams;) text(4,4, clubs;) dev.off() (these are the characters that I

Re: [R] Low Pain Unicode Characters in pdf graph?

2011-05-15 Thread David Winsemius
On May 15, 2011, at 9:06 AM, ivo welch wrote: Dear R-experts---is there a relatively low-pain way to get unicode characters into a plot to a pdf device? pdf(file=cardsymbols.pdf) plot( 0, xlim=c(0,5), ylim=c(0,5), type=n) text(1,1, spades;) text(2,2, hearts;) text(3,3, diams;) text(4,4,

Re: [R] Low Pain Unicode Characters in pdf graph?

2011-05-15 Thread Dennis Murphy
Hi: For your specific problem, one way is: plot( 0, xlim=c(0,5), ylim=c(0,5), type=n, cex = 2) text(1, 1, expression(symbol('\252'))) text(2, 2, expression(symbol('\251'))) text(3, 3, expression(symbol('\250'))) text(4, 4, expression(symbol('\247'))) More generally, David's advice is sound; see