[R] dotplot

Veerappa Chetty chettyvk at gmail.com
Mon Mar 22 20:49:53 CET 2010


Hi,
I am trying to make a dot plot in increasing order of the values. It does
not work. How do I do it? Here are the codes I used. I am also attaching the
data. I use lattice library.
Thanks.
Chetty
----------------------------------------------


y<-state.resid$Hospital.Name[state.resid$State=="MA"&is.na
(state.resid$reg.resid)==F]
x<-state.resid$reg.resid[state.resid$State=="MA"&is.na
(state.resid$reg.resid)==F]
dotplot(reorder(y,x)~x,xlab="Regression Adjusted   Rates")
---------------------------------------

-- 
Professor of Family Medicine
Boston University
Tel: 617-414-6221, Fax:617-414-3345
emails: chettyvk at gmail.com,vchetty at bu.edu


More information about the R-help mailing list