R scripts for data exploration