[R] y-axis number format on plot, barplot etc.

Henrique Dallazuanna wwwhsd at gmail.com
Tue Jul 22 13:13:07 CEST 2008


Try this:

barplot(x, yaxt="n")
axis(2, axTicks(2), format(axTicks(2), scientific = F))


On 7/21/08, Bill Cunliffe <bill at elevationllc.net> wrote:
> I am trying to change the number format shown on the y-axis from scientific
> 5e05, to 500,000 etc.  Does anyone know how to do this?
>
>
>
> Is there something I can add as an argument to barplot, or would it be
> through par?
>
>
>
> barplot(data$Value, names.arg = as.vector(data$Field), main=strTitle)
>
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list