Re: [R] BUG: atan(1i) / 5 = NaN+Infi ?

2024-09-13 Thread Jonathan Dushoff
On Fri, Sep 13, 2024 at 1:10 PM Duncan Murdoch wrote: > [You don't often get email from murdoch.dun...@gmail.com. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] > Caution: External email. > On 2024-09-13 8:53 a.m., Jonathan Dushoff wrote: > >> Message: 4 > >>

Re: [R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread Christopher W. Ryan
For me, Bert's suggestion produces a plot with two black symbols above the plotting region, a circle and a triangle, both filled, and no text. This, in which I specify several features of the symbols in the key, dd %>% dotplot( segment ~ transit_time, groups = impact, data = .,

Re: [R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread Bert Gunter
Oh, and for correct syntax with R's |> operator, "data = ." , should be "data = _" ; although the former seemed to work. -- Bert On Fri, Sep 13, 2024 at 10:45 AM Bert Gunter wrote: > > "Why does key = list(points = 16:17) not work? " > > Because, from the "key" section of ?xyplot > " The conten

Re: [R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread Bert Gunter
"Why does key = list(points = 16:17) not work? " Because, from the "key" section of ?xyplot " The contents of the key are determined by (possibly repeated) components named "rectangles", "lines", "points" or "text". Each of these must be **lists** with relevant graphical parameters (see later) co

Re: [R] BUG: atan(1i) / 5 = NaN+Infi ?

2024-09-13 Thread Duncan Murdoch
On 2024-09-13 8:53 a.m., Jonathan Dushoff wrote: Message: 4 Date: Thu, 12 Sep 2024 11:21:02 -0400 From: Duncan Murdoch That's not the correct formula, is it? I think the result should be x * Conj(y) / Mod(y)^2 . Correct, sorry. And thanks. So that would involve * and / , not just real ar

Re: [R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread Christopher W. Ryan
dd %>% dotplot( segment ~ transit_time, groups = impact, data = ., pch = 16:17, cex = 1.8, scales = list(cex = 1.4), key = list(points = 16:17) ) produces a graph with no discernible key, but with an asterisk at the top, above the plot

Re: [R] BUG: atan(1i) / 5 = NaN+Infi ?

2024-09-13 Thread Jonathan Dushoff
> Message: 4 > Date: Thu, 12 Sep 2024 11:21:02 -0400 > From: Duncan Murdoch > That's not the correct formula, is it? I think the result should be x * > Conj(y) / Mod(y)^2 . Correct, sorry. And thanks. > So that would involve * and > / , not just real arithmetic. Not an expert, but I don't s

Re: [R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread Deepayan Sarkar
On Fri, 13 Sept 2024 at 12:49, Christopher W. Ryan wrote: > > I am making a dotplot with lattice, as follows: > > dd %>% dotplot( segment ~ transit_time, groups = impact, data = ., >as.table = TRUE, > pch = 16:17, > cex = 1.8, > scal

Re: [R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread CALUM POLWART
Add: key = list(points=16:17) Into the dotplot section possibly without the autokey On Fri, 13 Sep 2024, 08:19 Christopher W. Ryan, wrote: > I am making a dotplot with lattice, as follows: > > dd %>% dotplot( segment ~ transit_time, groups = impact, data = ., >as.table = TRUE,

[R] how to specify point symbols in the key on a lattice dotplot

2024-09-13 Thread Christopher W. Ryan
I am making a dotplot with lattice, as follows: dd %>% dotplot( segment ~ transit_time, groups = impact, data = ., as.table = TRUE, pch = 16:17, cex = 1.8, scales = list(cex = 1.4), auto.key = TRUE) impact is a factor