Skip to content
Prev 70108 / 398503 Next

Lattice: it seems, a bug in draw.key function

On Friday 20 May 2005 07:05 am, Wladimir Eremeev wrote:
There's certainly a problem (at least one of omission in the documentation), 
but I'm not sure what the best way to resolve it would be. This is what 
currently happens on S-PLUS (6.0) and R:

divide = 3:  o--o--o  S-PLUS/R
divide = 2:  o-----o  S-PLUS/R

divide = 1:     o     S-PLUS
             -------  R

The difference in the 'divide = 1' case was not intentional, I just never 
checked it. 

Possible `solutions' are:

1. keep things as they are and clarify the documentation (namely, saying that 
'divide' has to be greater than 1 to make sense)

2. change it to behave like S-PLUS (but that seems silly, since one might then 
just as well use 'points' instead of 'lines')

3. do something else entirely, like ---o--- . This is not attractive from a 
programmers point of view because it makes 'divide = 1'  behave 
inconsistently with other values of 'divide'.

I'm open to suggestions.

Deepayan