Convert Plots to Functions

Convert plots to functions to enable calling on revised data.