generate_ggplot function

A helper function that takes simulation results and produces ggplot plots