|
Plotting with R Statistical Package
|
||||
|
||||
|
||||
|
tmp <- scan("tmp.txt",what=character(0)); wholeArray <- scan("tmp2.txt",what=double(0)); |
||||
|
|
||||
|
print( wholeArray[ X, Y] ); |
||||
|
|
||||
|
||||
|
a <- 3 ; b <- c(1:10); |
||||
|
|
||||
|
||||
|
str <- paste( str1, 3 , “ali”, sep=” ” ) |
||||
|
|
||||
|
||||
|
nodeCount <- length(nodeNameList); borderArray <- c(2,3); dataArray <- array(0,c(stepNumber,nodeCount)); dataArray <- array(0,c(trial, guess, generation)); |
||||
|
|
||||
|
||||
|
for (i in 1:stepNumber){ for (j in 1:nodeCount){ dataArray[i,j] <- wholeArray[(i-1)*nodeCount+j]; } } |
||||
|
|
||||
|
||||
|
par(lab=c(nTicksforX, nTicksforY, garbage)); plot(0,lty=0,xlim=c(0,1),ylim=c(-1,1),ylab="Y”,xlab="X",main="Title"); |
||||
|
|
||||
|
||||
|
boxplot(data.frame(sData),col=rgb(1,0,0),ylim=c(0,X)); You can also use x<-list(c(3:7),c(8:10))for( i in 1:dataCount ){ #inside plotting area text(streamNames[i],x=i,y=0.85,srt=90); #rotate text 90 degrees. #outside plotting area mtext(side=1,names[i],at=i,adj=1); #should do par(las=2) } |
||||
|
|
||||
|
||||
|
FunctionName= function(x,y) { z <- x+y; z } |
||||
|
|
||||
min =
10000; |
||||
nf <-
layout(matrix(1:(nodeCount),(nodeCount),1,byrow=TRUE), TRUE) |
||||
for(i in 0:4){ text(mds.dim1[number[gene.phase==i]], mds.dim2[number[gene.phase==i]], gene.phase[number[gene.phase==i]] , cex=0.8, col= i+1) } legend(0.8, 1.0, phase.name, pch="01234", col=c(1,2,3,4,5)) |
||||