Skip to content

stat_summary + mean_sdl doesn't plot confidence interval #2814

Closed
@jar1karp

Description

@jar1karp

I have previously used code similar to the example below to plot the average and confidence interval of some series. This still works with older versions, e.g. ggplot2 v2.2.1.

dat <- data.frame(x = rep(1:10, each = 12), y = rnorm(10 * 12))
library(ggplot2)
ggplot(dat, aes(x, y)) + stat_summary(fun.data = 'mean_sdl',
                                      fun.args = list(mult = 1),
                                      geom = 'smooth')

With ggplot2 v3.0.0 the above code only plots the average as blue line, but the gray area representing the confidence interval is not plotted at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions