Small function that I develop for my own usage

calc_phase_angle | calculate phase from mat_wt |

calc_power | calculate wavelet power spectrum from mat_wt |

date2nbDaysSinceEpid | Calculate number of days since start of epidemics |

dist_param | Definition of the distance function used in optimisation |

find_zeros_lin | plot real part of the wavelet decomposition |

fit_seasonal | Fit yearly and bi-yearly sinusoids |

mat_2_df | small function to format the matrix into a dataframe |

mo | Definition of the Morlet wavelet |

N_4 | Definition of the unit cubic B-spline (centered at x_0, width... |

N_4_original | Definition of the cubic B-spline (cardinal B-spline of order... |

N_4_unit | Definition of the unit cubic B-spline (centered at 0, width... |

plot_re | plot real part of the wavelet decomposition |

sp2df | Transforms a sp object into a dataframe to plot into ggplot |

spline_optim | Function optimizing the timing, spread and amplitude of peak |

trim_GBcode | remove '_cnt' or '_pref' from GBcodes |

ts_power | plot real part of the wavelet decomposition |

wt | Perform Morlet Wavelet transform |

wt_extract | Extract components between 2 scales |

wt_inverse | Reconstruct from wavelet transform |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.