R: Plot multiple box plots using columns from data frame

后端 未结 3 1317
慢半拍i
慢半拍i 2020-12-10 02:54

I would like to plot an INDIVIDUAL box plot for each unrelated column in a data frame. I thought I was on the right track with boxplot.matrix from the sfs

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 03:21

    I used iteration to do this. I think perhaps I wasn't clear in the original question. Thanks for the responses none the less.

    par(mfrow=c(2,5))
    for (i in 1:length(plotdata)) {
            boxplot(plotdata[,i], main=names(plotdata[i]), type="l")
    
    }
    

提交回复
热议问题