Recoded Logan plot to use the previously commited helper functions