[R] Fwd: Using comma as decimal mark in plots

David Carlson dcarlson at tamu.edu
Fri Mar 7 23:13:45 CET 2014


Does setting OutDec work for you?

options(OutDec=",")
x <- rnorm(50, mean=2, sd=0.1)
y <- rnorm(50, mean=2, sd=0.2)
plot(x, y)
# options(OutDec=".") to change it back if you want

-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352

-----Original Message-----
From: r-help-bounces at r-project.org
[mailto:r-help-bounces at r-project.org] On Behalf Of Kehl Dániel
Sent: Friday, March 7, 2014 3:50 PM
To: Lotharster; r-help at stat.math.ethz.ch
Subject: Re: [R] Fwd: Using comma as decimal mark in plots

Hi,

take a look at this old conversation. I do not know about an
other workaround, but maybe somebody else will know something.
As we also use commas in Hungary, I am also affected by this.

https://stat.ethz.ch/pipermail/r-help/2002-January/018030.html

HTH
daniel
________________________________________
Feladó: r-help-bounces at r-project.org
[r-help-bounces at r-project.org] ; meghatalmazó: Lotharster
[lotharster at gmail.com]
Küldve: 2014. március 7. 15:51
To: r-help at stat.math.ethz.ch
Tárgy: [R] Fwd: Using comma as decimal mark in plots

Hi,

I am preparing plots for a german publication. Therefore, I
would like
to use a comma as decimal mark instead of a point. How do I
change
this default in R?

I could not find anything in the help pages, maybe you can help
me out.

Thanks,

Lothar

______________________________________________
R-help at 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.

______________________________________________
R-help at 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.




More information about the R-help mailing list