Perhaps looking at the first derivative of the smooth (https://cran.r-project.org/web/packages/gratia/refman/gratia.html#derivatives) would help.