[R] Dotchart question

h.wickham@auckland.ac.nz h.wickham at auckland.ac.nz
Fri Sep 5 23:02:31 CEST 2003


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 explicit labels vectors to dotchart)

eg.
names(mol) <- prof
dotchart(sort(mol))

HTH,

Hadley

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/




More information about the R-help mailing list