Nothing

```
rotate.mat <-
function(mat){
new.mat <- matrix(NA, nrow = dim(mat)[2], ncol = dim(mat)[1])
#reverse each column i of the original
#matrix and put it into row i in the
#new matrix
for(i in 1:dim(mat)[2]){
new.mat[i,] <- rev(mat[,i])
}
rownames(new.mat) <- colnames(mat)
colnames(new.mat) <- rownames(mat)
return(new.mat)
}
```

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.