I use interaction.ABC.plot from dea package to visualize the interactions from EEG (electroencephalogram) data, which I use for glm. It works almost fine, but the title and y-axis title are not displayed on plot (default values for titles are used), line width doesn't change on setting lwd
parameter and furthermore, I want to add error bars to the plot, but currently have no clue, how to do it. As far as I understand, this can be done by using ggplotFuncs parameter, but I haven't succeeded.
I use R version 3.2.0, Windows 8.1, Rstudio 0.99.489, packages - dae (version 2.7-6), ggplot2.
sample data:
mV = c(runif(16,20,40))
site = rep(c("Fz", "Pz","Fz", "Pz","Fz", "Pz","Fz", "Pz"),2)
gender = rep(c("m","m","f","f","m","m","f","f"),2)
group = rep(c("A","A","A","A","B","B","B","B"),2)
al<-data.frame(mV,site,gender,group)
Here is the code of my usage of interaction.ABC.plot - it is rather straightforward:
library(dae)
library(ggplot2)
interaction.ABC.plot(mV,site,gender,group,data=al, fun="mean", title="Interaction between main factors in alpha-band", xlab("Groups"), ylab("µV"), lwd=10)