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

2015-06-03 Thread li li
Thank you! It worked. Hanna 2015-06-03 3:49 GMT-04:00, Duncan Mackay : > Hi > If you use the lattice package and not resort to other packages read the ? > xyplot carefully > There are several ways to put a key in the graph including auto.key if you > want something simple ie default > The examp

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

2015-06-03 Thread Duncan Mackay
Hi If you use the lattice package and not resort to other packages read the ? xyplot carefully There are several ways to put a key in the graph including auto.key if you want something simple ie default The examples at the bottom give some ideas If you want something special you can use key = lis

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,