When I call the function individually with dataframe and a particular column directly, the function behaves as expected and the plot\'s title gets updated when every new var