Re: [R] How to add legend to a dotplot

2015-06-03 Thread li li
omy and Soil Science > University of New England > Armidale NSW 2351 > Email: home: mac...@northnet.com.au > > > > > -----Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of li li > Sent: Wednesday, 3 June 2015 13:07 > To: r-

Re: [R] How to add legend to a dotplot

2015-06-03 Thread Duncan Mackay
), which gives 3 columns: text points and lines. Regards Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of li li

Re: [R] How to add legend to a dotplot

2015-06-02 Thread Jim Lemon
Hi Hanna, That is because "dotplot" is a lattice graphics function and "legend" is a base graphics function. There are two things you can do to fix this. One is to use the "dotchart" function in base graphics. The other is to use simpleKey in the latticeExtra package for the legend. Jim On Wed,

[R] How to add legend to a dotplot

2015-06-02 Thread li li
Hi all, I wanted to add the legend to a dotplot using legend funciton. If does not seem to be working? Anyone have any suggestions? Thanks! Hanna __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/list