Added function getData to each plot.R file