hello, I want to change the line color and/or fill of each boxplot and change number in scale what I need to do?
ylim<-c(-3,0.5) data.for.plot<-data.frame(accelaration=data_2$lag1min_accelaration, lag=1, alert='red') data.for.plot<-rbind(data.for.plot, data.frame(accelaration=data_2$min_accelaration, lag=0, alert='red')) data.for.plot<-rbind(data.for.plot, data.frame(accelaration=data_1$lag1min_accelaration, lag=1, alert='yellow')) data.for.plot<-rbind(data.for.plot, data.frame(accelaration=data_1$min_accelaration, lag=0, alert='yellow')) data.for.plot<-rbind(data.for.plot, data.frame(accelaration=data_0$lag1min_accelaration, lag=1, alert='no alert')) data.for.plot<-rbind(data.for.plot, data.frame(accelaration=data_0$min_accelaration, lag=0, alert='no alert')) library('ggplot2') ggplot(data.for.plot,aes(fill=factor(alert), y=accelaration,x=factor(lag)))+ geom_boxplot()
______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.