[R] Symbols for male/female

David Middleton dmiddleton at fisheries.gov.fk
Thu Oct 31 10:21:32 CET 2002

On Thursday, October 31, 2002 7:10 AM, Lorenz Gygax
[SMTP:gygax at ifi.unizh.ch] wrote:

> I would like to use the biological symbols for male and female as plotting
> symbols in a scatterplot (ideally filled and non-filled). R does not seem
> to have these symbols using pch= in plot() nor are they implemented via
> expression() or at least I did not find them. I found that the symbols are
> e.g. available in the wasysym and the marvosym package in LaTeX.

The male and female symbols are available in the Hershey fonts so can be
added via text, for example:

text(x,y,"\\MA",vfont=c("sans serif","bold"))   # male symbol
text(x,y,"\\VE",vfont=c("sans serif","bold"))  # female symbol

These are not the best looking fonts ion my opinion, but this may be the
quickest solution for the moment.


Dr David A. J. Middleton, Stock Assessment Scientist
Fisheries Department, Falkland Islands Government
Stanley, Falkland Islands
Tel: +500 27260  Fax +500 27265  Email: dmiddleton at fisheries.gov.fk
Web: http://www.falklandislands.com/business/fisheries.htm

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list