R code for regenerating the figures of "Extracellular data analysis" in book Brain-Computer Interfaces