Como gerar boxplot
Tenho dados e, a partir disso, quero gerar boxplot. Meu arquivo é salvo no arquivo "1.txt" e parece que isso
R S1G1 S1G2 S2G1 S2G2
1 0.98 0.98 0.96 0.89
2 0.89 0.89 0.98 0.88
3 0.88 0.99 0.89 0.87
Estou usando este código:
x<-read.table("1.txt", header=T)
boxplot(R~S1G1, data=x, main = "Output result",las = 2, pch=16, cex = 1,
col = "lightblue", xlab = "R",ylab = "SNP values",ylim =c(-0.4,1.0),
border ="blue", boxwex = 0.3)
lguém pode me dizer como gerar boxplot em