Message-ID: <CAM_vjunniDwE-yPyv25BdH+JoCAYDpHZVLeCn0Hj0VRHeXM=jg@mail.gmail.com>
Date: 2012-11-09T13:37:27Z
From: Sarah Goslee
Subject: Labeling position barchart
In-Reply-To: <1352460787986-4649031.post@n4.nabble.com>
You told us neither what you did, nor what was not as you expected.
Nonetheless, try this example:
x <- c(9, 5, 7)
mybarplot <- barplot(x, ylim=c(0, 10))
text(mybarplot, x+.08, letters[1:3], pos=3)
Sarah
On Fri, Nov 9, 2012 at 6:33 AM, Geophagus <fh at retposto.net> wrote:
> Hi @ all,
> I try to set a labeling on simple barchart.
> I do it with the text function. I want to see values of the x axis
> (BE_AKT$ammo) above the bars.
> When I try the following code, the values are shown, but not in the correct
> position.
> They should be labeled 0.08 above the bars.
>
> text(BE_AKT$ammo, BE_AKT$ammo + 0.08, label = BE_AKT$ammo, family="Calibri")
>
> Can somebody help me?
>
> Thank you very much!
> GeO
>
>
--
Sarah Goslee
http://www.functionaldiversity.org