Re: [R] using reorder in dotplot

2010-03-26 Thread Deepayan Sarkar
On Tue, Mar 23, 2010 at 7:21 AM, Veerappa Chetty wrote: > Hi, > Please help to correct my error in the following. I want to plot the values > of 'x" in increasing order. > --- > library(lattice) > Name<-c("A","B","C") > x<-c(15,20,10) > test<-data.frame(Name,x) > do

Re: [R] using reorder in dotplot

2010-03-22 Thread David Winsemius
On Mar 22, 2010, at 9:51 PM, Veerappa Chetty wrote: Hi, Please help to correct my error in the following. I want to plot the values of 'x" in increasing order. --- library(lattice) Name<-c("A","B","C") x<-c(15,20,10) test<-data.frame(Name,x) dotplot(Name~x,tes

[R] using reorder in dotplot

2010-03-22 Thread Veerappa Chetty
Hi, Please help to correct my error in the following. I want to plot the values of 'x" in increasing order. --- library(lattice) Name<-c("A","B","C") x<-c(15,20,10) test<-data.frame(Name,x) dotplot(Name~x,test) dotplot(reorder(Name,x)~x,test) "reorder" has no effect

Re: [R] using reorder in "dotplot"

2010-03-22 Thread Dennis Murphy
Hi: Is this what you are after? (df is the data frame name) library(lattice) dotplot(reorder(Name, rate) ~ rate, data = df) HTH, Dennis On Mon, Mar 22, 2010 at 2:17 PM, Veerappa Chetty wrote: > Hi , > Name > rate > > HEALTHALLIANCE HOSPITALS, INC

Re: [R] using reorder in "dotplot"

2010-03-22 Thread David Winsemius
On Mar 22, 2010, at 5:17 PM, Veerappa Chetty wrote: Hi , Name rate HEALTHALLIANCE HOSPITALS, INC -1.06211747 MOUNT AUBURN HOSPITAL 0.50960291 STURDY MEMORIAL HOSPITAL2.64233232

[R] using reorder in "dotplot"

2010-03-22 Thread Veerappa Chetty
Hi , Name rate HEALTHALLIANCE HOSPITALS, INC -1.06211747 MOUNT AUBURN HOSPITAL 0.50960291 STURDY MEMORIAL HOSPITAL2.64233232 LAWRENCE GENERAL HOSPITAL2.15628