[R] Thousands Separator

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Apr 19 08:52:21 CEST 2006


David Feldman wrote:
> I am a new R user, and am struggling with how to add a comma to the  
> tick mark labels in a bwplot or a boxplot.
> 
> I think the default values of the labels are fine, I just want them  
> to appear with commas.
> 
> If I use the function boxplot, I can then use
>    axis(2,labels=format(axTicks(2),big.mark=","))
> but that just overlays them on the existing labels which I don't know  
> how to turn off.


Specify in your plot function: yaxt="n" (see ?par)


> This method does not appear to work at all with bwplot, but I am not  
> sure why.

Because it is not a base graphics function but a lattice graphics.

Uwe Ligges



> Any help would be appreciated.
> 
> Thanks,
> 
> David
> 
> -------------------------------------------
> David Feldman
> The Taylor Feldman Group, LLC
> www.taylorfeldman.com
> (530) 400-5470
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



More information about the R-help mailing list