Hi all! I want to print a hyphen to a pdf() or postscript() device. As the documentaion of postscript says ASCII Character 45("-") is mapped to a minus sign (ASCII Character 95) by default. The advice given is to use "\173" for a hyphen.
But, the following code produces a curly brace instead of a hyphen. Thanks for any advice? Roland library(rgr) pdf("foo.pdf", encoding = "ISOLatin1") display.ascii.d() mtext("\173", side = 3) dev.off() R version 2.6.0 (2007-10-03) i386-apple-darwin8.10.1 locale: de_AT.UTF-8/de_AT.UTF-8/de_AT.UTF-8/C/de_AT.UTF-8/de_AT.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] rgr_1.0.3 MASS_7.2-36 akima_0.5-1 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.