rotate_mat: Orients a matrix for proper display in a plot
Description
This function reassembles a matrix
so that when we use image to plot,
the matrix appears in the image in
the same orientation in which it
is printed to the screen
are in rows and the phenotypes in columns