Take a look at ggplot2:
http://had.co.nz/ggplot2/
http://had.co.nz/ggplot2/book/
Particularly:
http://had.co.nz/ggplot2/geom_point.html
http://had.co.nz/ggplot2/geom_errorbar.html
http://had.co.nz/ggplot2/coord_flip.html
ex:
p = ggplot(my_data,aes(x=state,y=ami_mean))
p = p + geom_point()
p = p + geom_errorbar(aes(ymin=ami_low,ymax=ami_up))
p = p + coord_flip()
print(p)
On Mon, Apr 27, 2009 at 6:00 PM, He, Yulei <he at hcp.med.harvard.edu>
wrote:> Hi, there:
>
> I have a dataset with 50 states and for each state, I have its associated
mean estimate (for some parameters) and the lower and upper bound of the 95% CI.
The data look like below:
>
> ? ?state ami_mean ?ami_low ? ami_up
> 1 ? ? ?MS -0.58630 -0.90720 -0.29580
> 2 ? ? ?KY -0.48100 -0.75990 -0.19470
> 3 ? ? ?FL -0.47900 -0.62930 -0.32130
>
> I would like to have a plot the 95% CI (characterized by the mean, lower,
and upper bound, and the lines linking them) for each state, with x-axis is the
parameter estimate, and y-axis is the state. What kind of plot functions can I
use?
>
> Thanks.
>
> Yulei
>
>
> ? ? ? ?[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>
--
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University
Looking to arrange a meeting? Check my public calendar:
http://tr.im/mikes_public_calendar
~ Certainty is folly... I think. ~