Skip to content
Prev 241647 / 398500 Next

rotate column names in large matrix

Hi Lara,

Hmm, I've never seen column names rotated in R (certainly you could in
graphics, etc. and this should do it in that case:
lapply(strsplit(colnames(x), ''), paste, collapse = "\n")  ).  You
could transpose the matrix so the columns become the rows and then
just have numbers (1:1600) as the columns?  That's the best solution
I've found when dealing with large correlation matrices.  I also
usually set options(digits = 2) or thereabouts (or use round() ).  I'd
be interested in seeing any other ideas people have also as this has
been troublesome to me in the paste some too.  As much as I hate to
say it, I find it easier to view some of these things in Excel (you
can just write the matrix to the clipboard and paste into Excel or
probably open office (though I have not tried)) because it has easy
scrolls bars and zooming.

Cheers,

Josh
On Mon, Nov 15, 2010 at 9:47 AM, Lara Poplarski <larapoplarski at gmail.com> wrote: