Plotting a large matrix into a pixel matrix in R -


i calculating navigation measure matrix pigeon tracks. output data frame made example code below. each row different window length while each column number of seconds since release. data range between 0 no data, 0.001 1 data.

what want plot each point non overlapping square on xy plot, along colour scale. 0 = white (no data) while, 0.001-0.1 dark blue, 0.101-.2 light blue etc. there plot method this?

example.data<-c(0.000,0.000,0.000,0.000,0.000,1.000,0.000,0.000, 0.000,0.000,1.000,0.956,0.000,0.000,0.000,1.000,0.991,0.948,0.000,0.000,1.000,0.989,0.985,0.944,0.000,1.000,0.998,0.993,0.989,0.954,1.000,0.995,0.100,4.000,0.990,1.000,0.987,0.500,0.600,0.986,1.000,0.993,0.450,0.200,0.250)  example.data<-as.matrix(example.data[1:5,1:9] )  names(example.data<)<-paste("seconds",c(1:9)) row.names(example.data<)<- paste("window",c(1:5)) 

look @ plot heatmap. need numeric matrix

x <- as.matrix(example.data) heatmap(x[1:10,1:10],rowv=na,colv=na,reorderfun=na,hclustfun=na) 

but if try , plot data multicolour mess doesn't anything.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -