An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130726/875459ce/attachment.pl>
n-dash instead of hyphens in plots
2 messages · Anders Sand, Brian Ripley
On 26/07/2013 09:36, Anders Sand wrote:
Dear community,
How do I change the hyphens that appear when using '-' to n-dash in, for
example, x-axes?
Example code:
axis(1, c(1:2), c("1-4", "23-26"), tck=.05)
On what device on what platform? The commonest answer would be 'if you want en-dash not hyphen, ask for en-dash and not hyphen' en-dash is "\u2013" where that is supported.
Thanks Anders [[alternative HTML version deleted]]
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
This did ask for 'at a minimum' information and no HTML.
Brian D. Ripley, ripley at stats.ox.ac.uk 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