search for: cardsymbol

Displaying 2 results from an estimated 2 matches for "cardsymbol".

Did you mean: cardsymbols
2011 May 15
4
"Low Pain" Unicode Characters in pdf graph?
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, "♠") text(2,2, "♥") text(3,3, "♦") text(4,4, "♣") dev.off() (these are the characters that I need the most NOW, but this is a more generic...
2011 Aug 17
1
Symbol Font Baseline, Cairo, Card Symbols
...on this group... library(Cairo) clubs <- expression(symbol('\247')) hearts <- expression(symbol('\250')) diamonds <- expression(symbol('\251')) spades <- expression(symbol('\252')) csymbols <- c(clubs, diamonds, hearts, spades) CairoPDF(file = "cardsymbols.pdf") plot( 0, xlim=c(0,5), ylim=c(0,2), type="n" ) clr <- c("black", "red", "red", "black") for (i in 1:4) { hline <- function( yloc, ... ) for (i in 1:length(yloc)) lines( c(-1,6), c(yloc[i],yloc[i]), col="gray") hline(0...