Skip to content

Error for certain scatter plots #4

@uschiLaa

Description

@uschiLaa

Sometimes the triangulation (?) throws errors, maybe to do with discreetness? Simple example is

calc_scags(anscombe$x1, anscombe$x4)
Fehler in tri.mesh(X) : NA/NaN/Inf in externem Funktionsaufruf (arg 3)
Zusätzlich: Warnmeldungen:
1: In tri.mesh(X) : success: collinearities reduced through jitter
2: In tri.mesh(X) : dataset started with 3 colinear points, jitter added!

But I saw the same error with more complex scatter plots too.

This will throw the calc_scags_wide function, so maybe catch and return NA instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions