How to generate boxplot

后端 未结 3 1316
-上瘾入骨i
-上瘾入骨i 2020-12-12 01:59

I have a data and from that, I want to generate boxplot. My file is saved in \"1.txt\" file and it seems like this

R  S1G1   S1G2   S2G1   S2G2
1  0.98   0.9         


        
3条回答
  •  猫巷女王i
    2020-12-12 02:44

    After reading this post i found my solution to be sticking the table in data.frame(). Using the above example:

    Xtab <- data.frame(x)
    boxplot(Xtab$Freq ~ Xtab$Var1)
    

提交回复
热议问题