enhanced phasepace() to allow user-defined limits