added code for making heatplots for position variation analysis