data(bot)
cal <- calibrate_harmonicpower(bot)
## Not run:
# # for Opn objects
# data(olea)
# calibrate_harmonicpower(olea, "dfourier")
#
# # let customize the ggplot
# library(ggplot2)
# cal$gg + theme_minimal() +
# coord_cartesian(xlim=c(3.5, 12.5), ylim=c(90, 100)) +
# ggtitle("Harmonic power calibration")
# ## End(Not run)
# if you want to do efourier with 99% calibrate_harmonicpower in one step
# efourier(bot, nb.h=calibrate_harmonicpower(bot, "efourier", plot=FALSE)$minh["99%"])
Run the code above in your browser using DataLab