search for: data_matrix

Displaying 3 results from an estimated 3 matches for "data_matrix".

2011 Aug 08
1
heatmap is producing unwanted horizontal and vertical lines?
...rainer... I have an csv file that contains a grid of 300x300 data points. Each point represents a 1Km square on a map. Each point is either a floating point number or NA. I load the data in with:   data <- read.csv("matrix.csv", sep=',') Convert the data to a matrix with:   data_matrix <- data.matrix(data)  and then produce the heatmap with:   data_heatmap <- heatmap(data_matrix,Rowv=NA,Colv='Rowv',margin=c(0,0)) The heatmap is displayed in a separate window as expected and looks correct apart  from fine white banding lines spaced out evenly over the image runnin...
2011 Jan 05
1
Heat map in R
...02 D 1498 03 E 2294 03 F 2485 03 G 1560 04 H 3759 04 I 2792 05 J 7081 05 K 1922 06 . . . . . . . . . ZZZ 1354 43 My code in R is something like this: data<-read.table("/Users/jsmt/desktop/test.txt",header=T) data_matrix<-data.matrix(data) data_heatmap <- heatmap(data_matrix, Rowv=NA, Colv=NA, col = cm.colors(256), scale="column", margins=c(5,10)) I end up getting a heat map split into 3 columns: sample, depth, gene and the colours are just in big blocks that don't mean anything. Can anyone...
2012 Oct 11
0
Ptak and Candpara
...para to perform the Parafac factorizationor of a tensor. The results are not encouraging as I expected, I'm starting a phase of analysis to see if there are errors. I pose a question and I hope you can help me. The command to run the factorization is: ## CANDECOMP/PARAFAC results<- CANDPARA(data_matrix, dim=3) summary(results) U<-results[[1]]$v V<-results[[2]]$v W<-results[[3]]$v data_matrix is a tensor of 943x1682x4. what I want understand is: U, V, W, are really the three factors that I should get from factorization? I hope someone can help me. Thank you. giuseppe