I have a data frame like this:
df <- data.frame( posting_year = c(2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016), value = c(492, 523, 507, 66, 58, 641, 226, 990, 555, 481) )
This is the line chart I get using this code:
ggplot(df, aes(x=posting_year , y=value)) + geom_line()
But I want a line chart with a curve line. Something like this
Thank you