fixing plot RpA vs y