8000 GroupBreaks need FP tweaking · Issue #3 · hadley/ggstat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
GroupBreaks need FP tweaking #3
Open
@hadley

Description

@hadley

Following strategy in ggplot2. Will no longer need to pass right_closed

  # Strategy adapted from base::hist()
  diddle <- 1e-07 * stats::median(diff(x))
  if (closed == "right") {
    fuzz <- c(-diddle, rep.int(diddle, length(x) - 1))
  } else {
    fuzz <- c(rep.int(-diddle, length(x) - 1), diddle)
  }
  breaks <- sort(x) + fuzz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0