aphalo / ggpmisc

R package ggpmisc is an extension to ggplot2 and the Grammar of Graphics
https://docs.r4photobiology.info/ggpmisc
94 stars 6 forks source link

Support orientation in stat_peaks() and stat_valleys() #18

Closed aphalo closed 2 years ago

aphalo commented 2 years ago

Recent versions of 'ggplot2' have updated versions of statistics with formal parameter orientation. I have implemented this for the statistics in 'ggpmisc' except for these two. This would add consistency, and allow finding maxima and minima on the x values.

aphalo commented 2 years ago

Implemented.