I would like to display a data table at the bottom of the graph similar to this:

I have been trying the code in this post but it does not run in my RStudio version 1.1.383.
The dataframe for the graph is:
Pay.Quartiles = rep(c("lower", "lower.mid", "upper.mid", "upper"),2)
Gender = rep (c("Female", "Male"), each = 4)
Percentage = c(65.1,57.5,47.4, 41.3, 34.9, 42.5, 52.6, 58.7)
df = data.frame (Pay.Quartiles, Gender, Percentage)
