s-news
[Top] [All Lists]

Re: barplot

To: <s-news@lists.biostat.wustl.edu>
Subject: Re: barplot
From: <michel.piot@bfe.admin.ch>
Date: Thu, 13 Apr 2006 06:49:21 +0200
Thread-index: AcZd/aZ67DHyrtHzQuWBzXt6vYgT6QAt5ong
Thread-topic: RE: [S] barplot
Thanks to Bill for his answer. With this command everything works fine.

Regards Michel


On Wed, 12 Apr 2006 michel.piot@bfe.admin.ch wrote:

> I'm using SPLUS 6.2 for Windows.
>
> In my barplot I have negative numbers so the y-axis has a range from 
> -20 to 200. Unfortunately the names of the barplot with the "names" 
> argument in the barplot command are written in the plot region and not

> below the plot. Can anybody tell me, how to position the names below 
> the barplot?

I think this was fixed by Splus7.0, but a workaround
for earlier versions is:
    bar.centers <- barplot(x)
    mtext(side=1, at=bar.centers, lab=names)

------------------------------------------------------------------------
----
Bill Dunlap
Insightful Corporation
bill at insightful dot com
360-428-8146

<Prev in Thread] Current Thread [Next in Thread>
  • barplot, michel.piot
    • Re: barplot, michel.piot <=