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,                  rip...@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

______________________________________________
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.

Reply via email to