Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New x_limits argument #307

Merged
merged 3 commits into from
Sep 28, 2023
Merged

New x_limits argument #307

merged 3 commits into from
Sep 28, 2023

Conversation

strengejacke
Copy link
Member

No description provided.

@strengejacke
Copy link
Member Author

Not the best example, but I recently had some models with a very narrow spike at the left and a very long tail, where you could literally see nothing regarding how response and simulations matched or not. Now you can "zoom in", if required.

m <- lm(log(hp) ~ gear, data = mtcars)
performance::check_predictions(m)

performance::check_predictions(m) |> plot(x_limits = c(0, 400))

Created on 2023-09-28 with reprex v2.0.2

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #307 (e477ebe) into main (2533ebd) will increase coverage by 0.01%.
The diff coverage is 57.69%.

❗ Current head e477ebe differs from pull request most recent head 15595fc. Consider uploading reports for the commit 15595fc to get more accurate results

@@            Coverage Diff             @@
##             main     #307      +/-   ##
==========================================
+ Coverage   44.32%   44.34%   +0.01%     
==========================================
  Files          66       66              
  Lines        4742     4758      +16     
==========================================
+ Hits         2102     2110       +8     
- Misses       2640     2648       +8     
Files Coverage Δ
R/plot.check_predictions.R 32.95% <57.69%> (+1.08%) ⬆️

@strengejacke strengejacke merged commit e987ff6 into main Sep 28, 2023
23 of 26 checks passed
@strengejacke strengejacke deleted the xlim_check_predictions branch September 28, 2023 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants