-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Get rid of warnings and clean lints #267
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #267 +/- ##
==========================================
- Coverage 44.65% 44.50% -0.16%
==========================================
Files 65 65
Lines 4344 4476 +132
==========================================
+ Hits 1940 1992 +52
- Misses 2404 2484 +80
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
sorry, wasn't meaning to close this. But issue should be fixed with current dev of correlation. |
Awesome! Thanks a lot, @strengejacke! |
There's one issue which I'm not sure how to address: library(see)
library(parameters)
model <- lm(Sepal.Length ~ Species, data = iris)
plot(p_function(model))
#> Warning: Using linewidth for a discrete variable is not advised. I thought The code in # lines for vertical CI bars
ggplot2::geom_segment(
data = data_ci_segments,
mapping = ggplot2::aes(
x = .data$CI_low,
y = 1 - .data$CI,
xend = .data$CI_high,
yend = 1 - .data$CI,
group = .data$Parameter,
linewidth = .data$group
),
colour = colors[1],
alpha = line_alpha,
show.legend = FALSE
) |
@strengejacke that's a generic warning when a continuous aesthetic is applied to a discrete variable. Adding (As should making the |
It might also be better to do a _manual scale and specify the widths |
@strengejacke I wanted to get rid of all warnings in this PR, but that's going to take too long and I don't want to keep this PR pending forever. So you can review this one now, and I will create a follow-up PR to clean up remaining lints and warnings. Thanks. |
Thanks! There's only one thing I've spotted where I'm not sure if changes are needed. |
…nto ggplot2_warnings
Related to