Re: [R] log Y scales for parplot

About this list Date view Thread view Subject view Author view Attachment view

From: Marc Schwartz (MSchwartz@medanalytics.com)
Date: Sat 15 May 2004 - 10:54:23 EST


Message-id: <1084582463.7354.84.camel@localhost.localdomain>

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST