Fix retrieval of y value from ggplot_build()

Before fix: https://plot.ly/~mkcor/101/papers-vs-country/
After fix: https://plot.ly/~mkcor/106/papers-vs-country/ (as expected)