Skip to content

Issue with span for geom_smooth() on ggplot2 v3.1.0.9000 #3174

Closed

Description

@sabahzero

Hello,

I too am having issues with the span option of geom_smooth()

I've tried installing the older version, no dice
#1292

My data does default to gam, and have also tried setting the method to loess. Still no difference
#2870
https://ggplot2.tidyverse.org/reference/geom_smooth.html

Many thanks in advance!

Activity

  1. clauswilke commented on Mar 5, 2019

    @clauswilke
    Member
  2. added
    reprex
    on Mar 7, 2019
  3. paleolimbot commented on May 21, 2019

    @paleolimbot
    Member

    I can't seem to replicate this. It is possible that when using a large dataset (like one that would default to method = "gam"), changing the span parameter might not change the smooth that much, even when setting method = "loess".

    library(ggplot2)
    ggplot(mpg, aes(hwy, cty)) +
      geom_smooth(method = "loess", span = 0.75, col = "red") +
      geom_smooth(method = "loess", span = 10, col = "blue") +
      geom_smooth(method = "loess", span = 0.3, col = "purple")

    Created on 2019-05-21 by the reprex package (v0.2.1)

  4. sabahzero commented on May 27, 2019

    @sabahzero
    Author

    Hi all,

    It seems I'm just now seeing this. Thanks Claus for the quick reply.

    Yes, I have about 3000 data points. I figured out a way around it and took a different path, but will update if I encounter an issue again.

  5. lock commented on Nov 23, 2019

    @lock

    This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

  6. locked and limited conversation to collaborators on Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions