Skip to content

locfit and geom_smooth #3806

Closed
Closed
@dragice

Description

@dragice

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions