Finished analysis that produces the 3 graphs