pdt::AB_permutation_test_plot(
as.factor(c(rep("A",20), rep("B",20))),
1:40,
c(rnorm(20), rnorm(20)+2),
test_statistic_function="mean",
de_A_trend=TRUE,
detrend_A_position="center",
show_de_A_trended=TRUE,
de_B_trend=TRUE,
detrend_B_position="center",
show_de_B_trended=TRUE,
show_plot_header="",
xlab="",
ylab="",
ylim=NULL,
labels=NULL,
line_colors=c("blue", "red", "blue", "red", "blue", "cyan"),
show_legend=TRUE)
Run the code above in your browser using DataLab