[R] help about agnes

2006-08-16 Thread Arnau Mir Torres
Hello. I have the following distance matrix between 8 points: [1,] 0.00 3.162278 7.280110 8.544004 7.071068 9.899495 6.403124 8.062258 [2,] 3.162278 0.00 5.00 6.403124 4.472136 8.944272 6.082763 8.062258 [3,] 7.280110 5.00 0.00 1.414214 1.00 5.00 4.242641

[R] gray level values

2006-03-22 Thread Arnau Mir Torres
Hello. I have a matrix whit n1 rows and n2 columns called example. If I do image(example), R shows me an image with 480x480 pixels. How can I obtain the gray level of the pixel of row i and column j? Thanks, Arnau. __ R-help@stat.math.ethz.ch

[R] create a list of vectors

2006-03-15 Thread Arnau Mir Torres
Hello. I want to create a list of vectors but each component of the list has a different length. For example: Example=list() Example=list(Example,c(1,2,3)) Example=list(Example,c(11,12,13,14,15)) If I want the first component of the Example list, I have to write: Example[[1]][[2]]. R

Re: [R] how to make a contour plot in R?

2006-03-14 Thread Arnau Mir Torres
Uwe Ligges wrote: Arnau Mir Torres wrote: Hello. I am an nxn data frame in the variable frame. I want to make a contour plot with it. That is, I want to plot a square of dimensions [1,n]x[1,n] with the gray level of square [i,i+1]x[j,j+1] equal to frame[i,j]. How can I make

[R] name of the graphics output

2006-03-14 Thread Arnau Mir Torres
Hello. In the file list.txt, I have the name of n files in data frame format. I want to make an image for each file and save the images in pdf format. To do this, I do the following: llista = scan(file=list.txt,what=list(nom=)) for (file.name in llista[[1]]){

[R] how to make a contour plot in R?

2006-03-13 Thread Arnau Mir Torres
Hello. I am an nxn data frame in the variable frame. I want to make a contour plot with it. That is, I want to plot a square of dimensions [1,n]x[1,n] with the gray level of square [i,i+1]x[j,j+1] equal to frame[i,j]. How can I make it? Thanks, Arnau.