I define a function to automatically create three bar plots one above the other (so with subplots) from one single dataframe and inside this function I call another function