In a message dated 2/10/04 12:52:02 PM Pacific Standard Time, 
deepayan@stat.wisc.edu writes:

> On Tuesday 10 February 2004 11:55, TyagiAnupam@aol.com wrote:
> >How can I use row.names() as y-labels in Dotplot? How to set horizontal
> >orientation for y-lables in lattice()?
> >
> >Dotplot(stcod1 ~ Cbind(statgh2,statgh2-1.96*segh2,statgh2+1.96*segh2)[og],
> >subset=statgh2[og]>0.1, data=h2inqerrg02st, xlab="G",
> >ylab=row.names(h2inqerrg02st)[og], main="")
> >
> >I have tried doing it with mtext() as well, but there is not enough space
> >besides
> >y-axis.
> 
> Your terminology is unclear. In particular, your attempted usage of xlab and 
> 
> ylab look inconsistent. 
> 
> Before trying to use non-default features of lattice, please read 
> help("Lattice") and help("dotplot"). In particular the section on 'scales' 
> in 
> the latter should answer some of your questions.

I am trying to make Dotplots of a variable, "statgh2", with standard errors 
"segh2". These are in a dataframe "h2inqerrg02st". I want to use names of 
cities (stored as rownames of the dataframe---strings)  on the y-axis. "stcod1" is 
a numeric variable with code for the cities.  "og" is an ordering index 
vector. I tried 'scales' , but can't seem to make it work---don't understand it well 
enough.  Dotplot() is different from dotplot(), and is from package:Design.  
I was able to have city names on y-axis with the regular dotchart(), but not 
with Dotplot(). I wanted to add confidence intervals, therfore moved to 
Dotplot().  The following works very well and gives the names on the y-axis. Either 
adding standard errors in dotchart(), or rownames as lables for y-axis in 
Dotplot() would be fine for what I am trying to do. Will appreciate help.

dotchart(statgh2[order(statgh2)], labels=row.names(h2inqerrg02st), 
color="red",lcol="blue", bg="green", xlab="", ylab="",main="")






	[[alternative HTML version deleted]]


