Hello, I've got a question about a homework if have got.
The task is: Plot the histogram of the reaction times of the four participants as four plots on one canvas.
This is the data we've got:
simrts <- c(rgamma(500,shape=1,scale=0.1)*12,rgamma(500,shape=1,scale=0.175)*17,rgamma(500,shape=1,scale=0.2)*14,rgamma(500,shape=1,scale=0.3)*10)
rtdat <- data.frame(id = rep(c(1,2,3,4),each=500), rt = simrts)
I know i have to use the loop function but i don't understand quite how. Appreciate every help