Completed analysis code with plotting
(Workflow includes Adobe Illustrator)