I have the following dataframe:
uniq <- structure(list(year = c(1986L, 1987L, 1991L, 1992L, 1993L, 1994L, 1995L, 1996L, 1997L, 1998L, 1999L, 2000L, 2001L,
Another option producing identical results, is using coord_cartesian instead of continuous position scales (x & y):
ggplot(data = uniq) +
geom_area(aes(x = year, y = uniq.p, fill = uniq.loc), stat = "identity", position = "stack") +
coord_cartesian(xlim = c(1986,2014), ylim = c(0,101))+
theme_bw() + theme(panel.grid=element_blank(), panel.border=element_blank())