Re: [R] Numerical Format on axis

2011-11-17 Thread Mario Giesel
Thoiusand thanks to David and Don. Great help!   Mario Aachen, Germany Von: "MacQueen, Don" Cc: "r-help@r-project.org" ; David Winsemius Gesendet: 2:30 Donnerstag, 17.November 2011 Betreff: Re: [R] Numerical Format on axis To add to what

Re: [R] Numerical Format on axis

2011-11-16 Thread MacQueen, Don
To add to what David suggests, and since you're new to R, something like this: plot(x,y, yaxt='n') yticks <- pretty(y) axis(2, at=yticks, labels=sprintf("%1.2f",yticks)) See the help page for par ?par and look for the entry for 'xaxt' to see what the 'yaxt' arg to plot does. -- Don MacQueen

Re: [R] Numerical Format on axis

2011-11-16 Thread David Winsemius
On Nov 16, 2011, at 7:41 AM, Mario Giesel wrote: Hello, list, I'm new to R and I'm trying to produce a chart with currency values on the y axis. Values should be e.g. 1,00, 1,50, 2,00, etc. In fact they are 1,0, 1,5, 2,0, etc. How do I get R to show two digits after the comma on that axis?

[R] Numerical Format on axis

2011-11-16 Thread Mario Giesel
Hello, list,    I'm new to R and I'm trying to produce a chart with currency values on the y axis. Values should be e.g. 1,00, 1,50, 2,00, etc. In fact they are 1,0, 1,5, 2,0, etc. How do I get R to show two digits after the comma on that axis?   Thanks for any help,  Mario [[alternative H