[R] log Y scales for parplot

Marc Schwartz MSchwartz at MedAnalytics.com
Sat May 15 02:54:23 CEST 2004


On Fri, 2004-05-14 at 12:11, Monica Palaseanu-Lovejoy wrote:
> Hi,
> 
> I am doing a barplot, and the fist bar is very big (high values) and 
> the rest of the bars are quite small (small values). So - is there any 
> way to make the  Y scale logarithmic so that i have a wider 
> distance from 0 to 50 for example than for 50 to 100, and so on? 
> 
> Thanks in advance for any help,
> 
> Monica


Monica,

See the barplot2() function in the 'gregmisc' package on CRAN, which
supports the use of log axis scaling.

For example:

barplot2(c(5000, 50, 75, 100), log = "y")


HTH,

Marc Schwartz




More information about the R-help mailing list