tune.matrix function

Convert the shape of a matrix for fortify method