search for: nba_matrix

Displaying 2 results from an estimated 2 matches for "nba_matrix".

Did you mean: a_matrix
2012 Jul 06
2
Error in plot.new() : figure margins too large
...y any other variable) nba <- nba[order(nba$PTS),] #Prepare Data: makes rows by player name instead of Row Number row.names(nba) <- nba$Name #Prepare Data: don't need first column anymore, so we get rid of it nba <- nba[,2:20] #Prepe Data: change data from a data frame to a data matrix nba_matrix <- data.matrix(nba) #Create Heat Map nba_heatmap <- heatmap(nba_matrix, Rowv=NA, Colv=NA, col = cm.colors(256), scale="column", margins=c(5,10)) Karly Harrod LBNL Summer Intern kharrod@lbl.gov Lawrence Berkeley National Laboratory [[alternative HTML version deleted]]
2011 Nov 28
2
Principal componet plot from lower triangular matrix file
...o this by : b <- read.csv("distance.csv", sep=",", head=F) # distance.csv file is complete data matrix, so this command worked !! my_matrix <- data.matrix(b) pca2 <- princomp(my_matrix) plot(pca2$scores[,1],pca2$scores[,2]) text(pca2$scores[,1],pca2$scores[,2],rownames(nba_matrix), cex=0.5, pos=1) This time, I don't have a complete file. So, I was wondering, how to do this ? Any help is much appreciated TIA M -- View this message in context: http://r.789695.n4.nabble.com/Principal-componet-plot-from-lower-triangular-matrix-file-tp4114840p4114840.html Sent from the R...