How to fit a bell-shaped curve on 2 dimensional scatter data?
问题 I have x-y scatter data, which exhibit bell-shaped (i.e. normal distribution shaped) behaviour over the course of a year. These are primary production data from high latitudes (more in detail here, the article is paywalled, but I hope that the figures are visible). Question How do I fit a normal distribution shaped curve on scatter data in ggplot2? Example data x <- structure(list(yday = c(238, 238, 238, 242, 242, 250, 250, 253, 254, 169, 199, 208, 230, 21, 37, 88, 94, 102, 125, 125, 95, 98,