Skip to content

Conversation

koheiw
Copy link

@koheiw koheiw commented Jun 17, 2025

This PR adds stat_ksmooth() to smooth data points using stats::ksmooth().

library(ggplot2)
ggplot(economics, aes(date, psavert)) +
  geom_point(alpha = 0.25) +
  stat_ksmooth(bandwidth = 180, kernel = "normal")  

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant