-
-
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
estimate_fit #38
Comments
ehm, you probably need to correct the plot-function directly. ;-) But yes, the plot looks crazy, though I really like the idea of having CIs for the uncerntainty in the draws (though this was not the case in the previous plots, if unintended, cool! :-D) |
right, lemme look into it |
This is not urgend, since estimate isn't on CRAN yet, anyway. |
it was just about changing estimate_response to estimate_link |
I just saw that it was almost completely nonsense what I wrote... It's probably indeed something to be fixed in the readme! |
We don't have a plot-method for |
I know, but my guess is this would be tricky (although super awesome); we would have to detect from the data the appropriate aesthetics (if interactions, draws, ci etc) I'd say for now we can live with partial support for estimate_contrasts, which is just there as an initial implementation of lighthouse plots. Maybe we can think about improving the support for |
@DominiqueMakowski what about adding some more plot functions for the modelbased package? I think especially modelbased is a package that would really benefit from plot functions. |
I agree I agree, and also making them more robust to different formulas and parameters. Maybe inspiration could be drawn for estimate_link and estimate_response from ggeffects, I wonder how you deal with all the possibilities. And for estimate_means() and estimate_response(), i.e., in cases where x is a factor, I'd love to improve and reinforce lighthouse plots #12 but last time I hit the limits of my abilities. Maybe now I could give it a fresh look, but first let me finish with report 😅 |
There are quite some examples for plots in the vignettes, maybe we can at least start with functions that create "simple" plots like those? Maybe over the next weeks... |
Yes I agree. Though we could start with improving/making more robust the plotting Or We could essentially have a common function with an argument |
I am really missing plotting functions for library(ggplot2)
model <- lm(mpg ~ factor(cyl) * wt, data = mtcars)
ggplot(modelbased::estimate_prediction(model, data = "grid"), aes(x = wt, color = factor(cyl), fill = factor(cyl))) +
geom_point(aes(y = mpg), data = insight::get_data(model)) +
geom_ribbon(aes(ymin = CI_low, ymax = CI_high), alpha = .2, color = NA) +
geom_line(aes(y = Predicted)) Created on 2021-05-30 by the reprex package (v2.0.0) |
@DominiqueMakowski Let me know if you'd like to spitball or discuss any design considerations for this |
absolutely, I'm currently thinking of a proof-of-concept for an updated approach to my long-term goal that a draft can be seen through one of the original idea for Besides the longer-term part of this goal (to offer an ingredients&recipe based - instead of a pre-baked - approach to plotting), the shorter goal would be to expose the middle portion, between the object and the plot. In other words, I'm thinking of a |
Feel free to move this comment over to your modelbased issue. I'm not exactly following what you mean by "method that would take an object and return the data ready to be plotted". The I think a basic approach for
Then, we apply nice see defaults. If a user wants more customization, they can take the resulting ggplot and add more layers. |
Closed in favor of easystats/modelbased#110 |
@DominiqueMakowski
estimate_fit()
was renamed toestimate_response()
, if I'm not mistaken. However, the plot now looks a bit different (I guess this is intended).Could you please check https://github.com/easystats/see if plots are OK?
The text was updated successfully, but these errors were encountered: