ferrelwill
ferrelwill

Reputation: 821

how to visualize 200k rows and 100 columns of data

heatmap and pheatmap of R failed to produce a cluster by throwing this error.

Error in vector("double", length) : vector size specified is too large

Does any one know how could I visualize that big matrix ?

Upvotes: 3

Views: 1095

Answers (1)

IRTFM
IRTFM

Reputation: 263352

The hexbin package is designed to efficiently summarize large count 2D displays. Only with more than ten million points does this slow down somewhat on my 3 year-old Mac. (Honest, @James, I did think of this independently.) This is a minor mod to the example in one of its help pages:

 require(hexbin)
 h <- hexbin(rnorm(10000),rnorm(10000))
  plot(h, colramp= function(n){magent(n,beg=15,end=225)})

enter image description here

Upvotes: 6

Related Questions