Skip to content

locfit and geom_smooth #3806

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

Closed
dragice opened this issue Feb 7, 2020 · 0 comments · Fixed by #4435
Closed

locfit and geom_smooth #3806

dragice opened this issue Feb 7, 2020 · 0 comments · Fixed by #4435
Labels
bug an unexpected problem or unintended behavior
Milestone

Comments

@dragice
Copy link

dragice commented Feb 7, 2020

locfit shows SEs instead of CIs when used with stat_smooth.

library(locfit)
library(ggplot2)

data(ethanol)

# 99% CIs computed by locfit
fit = locfit(NOx~E, data=ethanol)
crit(fit) = crit(fit, cov=0.99)
plot(fit, band="local")

# 99% CIs displayed by ggplot
qplot(E, NOx, data=ethanol) + 
  stat_smooth(method="locfit", level=0.99)
@thomasp85 thomasp85 added the bug an unexpected problem or unintended behavior label Mar 9, 2020
@thomasp85 thomasp85 added this to the ggplot2 3.3.4 milestone Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants