I have data structured as follows (this is just an example):
year company cars
2011 toyota 609
2011 honda 710
2011 ford 77
2011 nissan 45
2011 chevy 11
2012 toyota 152
2012 honda 657
2012 ford 128
2012 nissan 159
2012 chevy 322
2013 toyota 907
2013 honda 656
2013 ford 138
2013 nissan 270
2013 chevy 106
2014 toyota 336
2014 honda 957
2014 ford 204
2014 nissan 219
2014 chevy 282
I want to create a chart by area. With one dataset formatted in exactly the same way as above, the formula ggplot(data, aes(x=year,y=cars, fill=company)) + geom_area()fills areas between years, for example:

However, if another data set is formatted in exactly the same way and generated using exactly the same ggplot code, but only using a new data source ggplot(data2, aes(x=year,y=cars, fill=company)) + geom_area(), the chart does not fill the area between years and creates a mess, like this:

In each year, you will notice that all points are connected. Odd intervals between years.
Does anyone have any suggestions regarding a possible source of this error?