#' Matrix reversal by row
#'
#' Reverse row order of matrix for correctly oriented raster plots.
#' @param mat a matrix to be reflected around horizontal axis
#' @return A matrix
#' @export
reflect = function(mat) {
mat[nrow(mat):1,]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.