![]() ![]() So I can get the gradient I want using geom_line but its not smooth. ![]() Stat_smooth(aes(y=impressions, x=hour), method = lm, formula = y ~ poly(x, 10), se = FALSE) Geom_line(aes(y=impressions, x=hour, color=cvr)) + This is what I've come up with so far:ĭATA: dayofweek hour impressions conversions cvr Theoretically polynomial interpolation would get the job done but I'm not sure how I would do that with ggplot. ![]() I'm trying to plot a smooth line that runs directly through all my data points and has a gradient based on another variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |