In the following graph we show the GPD per capita of the 17 Autonomous Communities in Spain. It is possible to see the evolution from 2008 to 2016. The information is from INE.
The code is also present for reproducibility. The data set can be downloaded or sourced from https://github.com/angieFelipe/datasciencesoursera/blob/master/pibpcCCAA.rda?raw=True
GPDpc in Spain
library(ggplot2);library(plotly)
g<-ggplot(pibpc, aes(x=year, y=PIBpc, colour=CCAA))+
geom_line()+ geom_point()
ggplotly(g)