Cleaned up analysisplots.r