Closed qgeissmann closed 6 years ago
So now we should be able to plot the p-values itself. e.g. as a point size:
data(dams_sample)
dd <- dams_sample[id=="2017-01-16 08:00:00|dams_sample.txt|01"]
per <- periodogram(activity, dd, FUN=ls_periodogram)
ggetho::ggperio(per) +
geom_line() +
geom_point(aes(size= -log10(p_value))) +
geom_line(aes(y=signif_threshold), colour="red")
The red line is the significance threshold that we still have (the only info that was present before)
per <- periodogram(activity, dd, FUN=chi_sq_periodogram)
per <- periodogram(activity, dd, FUN=ac_periodogram)
Most tools we use for periodogram can associate each power to a p-value rather that expressing independently a significance threshold. It would be advantageous to return p-values instead of a mere threshold for multiple reasons: