Re: [R] lines through points in lattice legend

2023-01-28 Thread Kenneth Knoblauch
Thanks.  That works well and it's simple. Ken ___ Kenneth Knoblauch Inserm U1208 Stem-cell and Brain Research Institute 18 avenue du Doyen Lépine 69500 Bron France tel: +33 (0)4 72 91 34 77 fax: +33 (0)4 72 91 34 61 portable: +33 (0)6 84 10 64 10 https://sbri.fr/public-profile/63

Re: [R] lines through points in lattice legend

2023-01-28 Thread Deepayan Sarkar
On Sat, Jan 28, 2023 at 2:49 PM Kenneth Knoblauch wrote: > > Hi, > > I'm struggling to find if there is a simple way to make the lines and points > overlap in a legend for a lattice plot using auto.key. Here is a toy example > of what doesn't work (for me) as the lines and points are adjacent r

[R] lines through points in lattice legend

2023-01-28 Thread Kenneth Knoblauch
Hi, I'm struggling to find if there is a simple way to make the lines and points overlap in a legend for a lattice plot using auto.key.  Here is a toy example of what doesn't work (for me) as the lines and points are adjacent rather than overlapping: library(lattice) d <- data.frame(x = 1:2, y