Simulating a Power Spectrum Density

lfp <- sin(2*pi*5*t) + sin(2*pi*1*t) + 1.5*sin(2*pi*.2*t) #generating a signal with 1, 5, and 0.2 Hz par(mfrow = c(2,1)) plot(t, lfp, type = "l", lwd = 2, col = "steelblue", bty = "n", xlab = "t (s)", ylab = expression(paste(mu, "V")), main = "Raw LFP", ylim = c(-4,4), las =... [Read More]
Tags: playing coding R

Calculate and plot effect size with effsize_plot

Description Calculate and plot r and Cohen’s d effect size and its confidence intervals. Usage effsize_plot(x, g, method = 'r', paired = F, color = 'black', size = 2, width = .05, line.col = 'grey', lwd = 1, lty = 2, ggtheme = theme_minimal(), par_r = list(conf = .95, type... [Read More]