Skip to content

narrow mcmc_areas_ridges inner intervals have problems #126

@tjmahr

Description

@tjmahr

The plot draws the vertical line if applicable, then draws the outer ridge line (no fill), then draws the inner ridge line (filled). When the inner interval is small, we get some weirdness:

image

Reversing the draw order (inner then outer) is an improvement.

image

But ultimately, we need a "blank" fill on the outer interval for the points that land outside of the inner interval.

So

  • draw inner interval
  • draw full outer interval with no fill
  • draw outer interval where x <= min(inner$x) or max(inner$x) <= x with blank fill, inheriting the fill from the global plotting theme. (Consider though infer annotation aesthetics from global theme #120)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions