Skip to content
Prev 65620 / 398506 Next

Decimal point as a comma in postcript and pdf graphics

[...]
[...]
When I need that, I use something like Peter but with the 'format'
function, for example:

  x <- rnorm(100,,.2)
  p <- pretty(x)
  hist(x,xaxt="n")
  axis(1, at=p, labels=format(pretty(x), decimal.mark=","))

Hope it helps.

Christophe
--
Christophe Declercq, MD
Observatoire regional de la sante Nord-Pas-de-Calais
13, rue Faidherbe
F-59046 LILLE Cedex
Phone 33 3 20 15 49 24
Fax 33 3 20 55 92 30
E-mail c.declercq at orsnpdc.org