changing plot to bar