I have a data frame which looks like this below. I have the variable ToF.Freq1_Hit1 , ToF.Freq1_Hit2, ToF.Freq1_Hit3 .... and so on till ToF.Freq20_Hit5. ( So 20 Freq and 5 hits each). The Data frame is already melted using melt()
.
I am trying to plot mean and sd for each freq. I tried the below but it is really cluttered. Any ideas on how to improve this.
p4 <- ggplot(B_TOF_melt, aes(x = variable, y = value)) + geom_boxplot() +
theme(axis.text.x = element_text(angle = 90)) +ggtitle("Geraete B TOF means")
Is there a way within ggplot to split the variables as ToF.Freq1 : 20 and the Hits separate. ?
Many thanks for putting up with this.