Re: [R] How to right-align labels in dotchart

2009-10-16 Thread Peter Ehlers
Sean Carmody wrote: Thanks very much John, that works. I had tried using las=1 inside the dotchart function itself, but it seems to be one of those occasions where the par parameter is over-ridden by the main plotting function. You can see the results here: http://www.stubbornmule.net/2009/10/a

Re: [R] How to right-align labels in dotchart

2009-10-16 Thread Sean Carmody
Thanks very much John, that works. I had tried using las=1 inside the dotchart function itself, but it seems to be one of those occasions where the par parameter is over-ridden by the main plotting function. You can see the results here: http://www.stubbornmule.net/2009/10/asylum-seekers/ Now if on

Re: [R] How to right-align labels in dotchart

2009-10-16 Thread John Kane
Oops replying to the wrong post but anyway does this do what you want? aa <- c(3,6,3,5,8) lbs <- c('cat','goat', 'elephant', 'horse', 'whale') dotchart(aa, pch=(16), col = 1:5, main="A Dotchart") axis(side = 2, seq_along(aa), lbs, las=1) --- On Thu, 10/15/09, Sean Carmody wrote: > From: Sean

Re: [R] How to right-align labels in dotchart

2009-10-15 Thread Sean Carmody
Pressed send too soon (apologies). Meant to say I have only just discovered the joys of the dotchart (since I am reading William Cleveland's "The Elements of Graphing Data"). However, I cannot work out how to change the alignment of the text labels from left to right. Regards, Sean. On Fri, Oct