Displaying 2 results from an estimated 2 matches for "seqb".
Did you mean:
seq
2005 Jan 13
1
(no subject)
Good morning,
I wrote a little code in R which has to show two graphs but I can get
only one. How can I adress the graphs in two files?
Second, I'd like, always in the same code, to add a legend to a graph.
Better, I'd like to put in such a legend a new item whose color
could remind the colour ol the columns it refers to in the plot. I wrote:
leg.txt<-c("control
2012 Sep 13
1
problem creating an array
...=================================================================
#landscape changes
#========================================================================
##generate 3 sequences, each of length n=21; sequences named theta"n"_set1
theta1_set1=c(seq(0,1,0.005))
seqa=c(seq(0,0.50,0.005))
seqb=c(seq(0.495,0,-0.005))
theta2_set1=c(seqa,seqb)
seqc=c(seq(1,0,-0.01))
seqd=c(rep(0,100))
theta3_set1=c(seqc,seqd)
sum=numeric()
for (i in 1:201)
{ sum[i]= theta1_set1[i]+theta2_set1[i]+theta3_set1[i]
}
sum
#"n" designates the number of random #'s to be generated from rnorm
#"x&q...