[R] Dotchart question

2003-09-05 Thread Peter Flom
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

Re: [R] Dotchart question

2003-09-05 Thread Tito de Morais Luis
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

Re: [R] Dotchart question

2003-09-05 Thread kjetil brinchmann halvorsen
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',