On 5 Sep 2003 at 14:30, Peter Flom wrote:
prof <- c('Accountant', 'Administrative assistant', 'Garment worker',
'Cook',
'Dentist', 'General practictioner', 'Graduate student',
'High level manager',
'Low level manager', 'Mechanical engineer', 'Mechanic',
'Minister/priest/rabbi',
'Nurse'
Hi Peter,
Dotchart plots the points in the order that it receives them - to plot them in
order of increasing mol, you need to sort mol first. To make sure you keep the
right prof associated to the right mol, I'd use names to connect the two first
(this also means you don't need to provide an expl
This one is ugly, but works...
molprof<-data.frame(mol,prof)
molprof <- molprof[with(molprof,order(mol)), ]
dotchart(molprof$mol, labels = as.character(molprof$prof), main = 'Dot
chart', xlab = 'Meaning of life score')
HTH
Tito
Le ven 05/09/2003 à 18:30, Peter Flom a écrit :
> Sorry to keep as
Sorry to keep asking elementary questions..I appreciate the help.
I am trying to create a dotchart with the rows sorted according to the
values, rather than the labels. When I try
prof <- c('Accountant', 'Administrative assistant', 'Garment worker',
'Cook',
'Dentist', 'General practictione