On Tue, Mar 23, 2010 at 7:21 AM, Veerappa Chetty chett...@gmail.com 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)
Hi ,
Name
rate
HEALTHALLIANCE HOSPITALS, INC -1.06211747
MOUNT AUBURN HOSPITAL 0.50960291
STURDY MEMORIAL HOSPITAL2.64233232
LAWRENCE GENERAL HOSPITAL
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
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 chett...@gmail.com wrote:
Hi ,
Name
rate
HEALTHALLIANCE
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!
Thanks.
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,test)
6 matches
Mail list logo