tidymodels / tidymodels/probably

Inconsistent axes in cal_plot_logistic()

Open Beginner friendly
#200 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
123
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Problem

cal_plot_logistic has a different y-axis labels from cal_plot_windowed or cal_plot_breaks. Consistency ("Event Rate" for cal_plot_logistic would be nice).

The current version ("Predicted Event Rate") is confusing to me. I thought the y-axis was the 'truth' and the x-axes in these graphs were derived from model predictions.

Reproducible Example

library(ggplot2)
library(dplyr)
#> 
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#> 
#>     filter, lag
#> The following objects are masked from 'package:base':
#> 
#>     intersect, setdiff, setequal, union
library(probably)
#> 
#> Attaching package: 'probably'
#> The following objects are masked from 'package:base':
#> 
#>     as.factor, as.ordered
cal_plot_logistic(
  segment_logistic,
  Class,
  .pred_good
)


cal_plot_windowed(
  segment_logistic,
  Class,
  .pred_good,
  window_size = 0.05
)



cal_plot_breaks(
  segment_logistic,
  Class,
  .pred_good,
  window_size = 0.05
)

Created on 2026-01-30 with reprex v2.1.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the cal_plot_logistic() entry point and compare its axis labeling with cal_plot_windowed() and cal_plot_breaks(). Re-run the three examples from the issue to inspect the labels. Done means cal_plot_logistic() uses the consistent “Event Rate” y-axis label without changing the other plot behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.