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 only I can nudge the labels a little further to the right...
Regards,
Sean.

On Sat, Oct 17, 2009 at 5:05 AM, John Kane <jrkrideau@yahoo.ca> wrote:

> 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 <seancarmody@gmail.com> wrote:
>
> > From: Sean Carmody <seancarmody@gmail.com>
> > Subject: [R] How to right-align labels in dotchart
> > To: "R Help Mailing List" <r-help@r-project.org>
> > Received: Thursday, October 15, 2009, 7:51 PM
> > I have only just discovered the joys
> > of the dotchart (since I am reading
> > William Cleveland's
> >
> > --
> > Sean Carmody
> >
> > The Stubborn Mule
> > http://www.stubbornmule.net
> > http://twitter.com/seancarmody
> >
> >     [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help@r-project.org
> > mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained,
> > reproducible code.
> >
>
>
>      __________________________________________________________________
> Looking for the perfect gift? Give the gift of Flickr!
>
> http://www.flickr.com/gift/
>



-- 
Sean Carmody

The Stubborn Mule
http://www.stubbornmule.net
http://twitter.com/seancarmody

	[[alternative HTML version deleted]]


