# NOT RUN {
library(ggplot2)
#Generate data
x_ex <- factor(c(rep("J0", 10), rep("J7", 10), rep("J14", 10)), levels = c("J0", "J7", "J14"))
y_ex <- rnorm(30)
data_ex <- cbind.data.frame(x_ex, y_ex)
#Plotting
multipleBoxplots(data = data_ex, x_var = x_ex, y_var = y_ex)
multipleBoxplots(data = data_ex, x_var = x_ex, y_var = y_ex) +
labs(x = "Time", y = "Value") +
theme(legend.position = "none")
# }
Run the code above in your browser using DataLab