1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
> x=read.table("Cv2")
> y=read.table("Aster")
> x[x>1000]=1000
> y[y>1000]=1000
> hist(x[x!=0],nclass = 20,xlab="Intron size", main="Intron size
+ + distribution for Cv2", col="grey")
> hist(y[y!=0],border="blue",add=TRUE)
> x=read.table("Cv2")
> y=read.table("Aster")
> x[x>1000]=1000
> y=read.table("Aster")
> x[x>1000]=1000
> y[y>1000]=1000
> hist(x[x!=0],nclass = 20,xlab="Intron size", main="Intron size
+ + distribution for Cv2", col="grey")
> hist(y[y!=0],col="blue",add=TRUE)
> x=read.table("Cv2")
> y=read.table("Aster")
> x[x>1000]=1000
> y[y>1000]=1000
> bp1=hist(x[x!=0],plot=FALSE,nclass=20)
> bp2=hist(y[y!=0],plot=FALSE,nclass=20)
> hlims=range(c(bp1$breaks,bp2$breaks))
> vlims=range(c(bp1$counts,bp2$counts))
> histcol=sapply(apply(rbind(col2rgb(c("orangered2","lightblue"))/255,alpha=c(1,0.5)),2,as.list),do.call,what=rgb)
> hist(x[x!=0],border="darkred",xlims=hlims,ylim=vlims,nclass=20,col=histcol[1])
Messages d'avis :
1: In title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...) :
"xlims" n'est pas un paramètre graphique
2: In axis(1, ...) : "xlims" n'est pas un paramètre graphique
3: In axis(2, ...) : "xlims" n'est pas un paramètre graphique
> hist(y[y!=0],border="darkblue",add=TRUE,breaks=seq(from=min(hlims),by=diff(bp1$breaks[1:2])),col=histcol[2])
Erreur dans hist.default(y[y != 0], border = "darkblue", add = TRUE, breaks = seq(from = min(hlims), :
nombre de 'breaks' incorrect
> hist(y[y!=0],border="darkblue",add=TRUE,breaks=seq(from=min(hlims),by=diff(bp2$breaks[1:2])),col=histcol[2])
Erreur dans hist.default(y[y != 0], border = "darkblue", add = TRUE, breaks = seq(from = min(hlims), :
nombre de 'breaks' incorrect
> hist(y[y!=0],border="darkblue",add=TRUE,breaks=seq(from=min(hlims),by=diff(bp1$breaks[1:3])),col=histcol[2])
Erreur dans hist.default(y[y != 0], border = "darkblue", add = TRUE, breaks = seq(from = min(hlims), :
des valeurs de 'x' n'ont pas été comptées ; peut-être 'breaks' ne couvrent pas l'étendue de 'x' |
Partager