Function to plot fitted model.