On Tue, 1 Feb 2005, Marc Schwartz wrote:

On Tue, 2005-02-01 at 18:48 -0800, [EMAIL PROTECTED]
wrote:
dear R wizards:

is it possible to use a postscript font symbol as a plot symbol?    in
particular, I want to use the four postscript symbols for playing cards
(club, heart, spade, diamond) as points.  In LaTeX, these four are

\Pisymbol{psy}{"A7} \Pisymbol{psy}{"A8}
\Pisymbol{psy}{"A9} \Pisymbol{psy}{"A10}

and what I would love to do is place them, at say, (x=1,y=1),
(x=2,y=2), (x=3,y=3) and (x=4,y=4).  Help appreciated---or merely a
note that this is impossible.

Font 5 is the symbol font, so

plot(1:5, type="n")
points(1:4, 1:4, pch=167:170, font=5)

does this (not in that order, but you can make the mapping from that plot).

--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to