Skip to content

geom_smooth: Prediction interval and not confidence interval for se in the documentation #6025

Closed
@herry23xet

Description

@herry23xet

Hello,
if I use geom_smooth(), then an interval is shown in the standard se = TRUE, which does not have a constant width. Especially for linear estimates of slope parameters.
However, the documentation states that se is a confidence interval (https://ggplot2.tidyverse.org/reference/geom_smooth.html):

Display confidence interval around smooth? (TRUE by default, see level to control.)

However, this cannot be the case, as a confidence interval is always a fixed interval around the slope parameter.
What geom_smooth() shows, however, is the prediction interval (https://en.wikipedia.org/wiki/Prediction_interval).

The same for level.

Example image (from the documentation), dark grey area:

Or have I made a mistake?

If not, this should be changed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions