code for making exploratory graphs