Skip to content

Rugs disappear in calibration plots when using .by argument #188

Description

@abichat

The problem

When using cal_plot_breaks(), cal_plot_windowed() or cal_plot_logistic() with the .by argument, the rugs disappear from the plot, even with include_rug = TRUE.

Reproducible example

library(dplyr)
library(probably)


packageVersion("probably")
#> [1] '1.1.1'

segment_logistic <-
  segment_logistic %>% 
  mutate(group = sample(c("A", "B"), n(), replace = TRUE))

cal_plot_breaks(
  segment_logistic,
  Class,
  .pred_good
)

cal_plot_breaks(
  segment_logistic,
  Class,
  .pred_good,
  .by = group, 
  include_rug = TRUE
)

Created on 2025-08-13 with reprex v2.1.1

Thanks for considering this issue, and for your work on probably!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions