mvtsplot
mvtsplot copied to clipboard
added ability to accept any color palette, rather than just the ones nam...
...ed by RColorBrewer
this makes it possible to make your own palettes, or reverse the order of RColorBrewer palettes. (e.g., if using "RdBu" for plotting temperature, "cold" values showed up red, which was counterintuitive)
Examples:
mvtsplot(matrix(runif(99), ncol=9), palette = rev(brewer.pal(4, "RdBu"))) mvtsplot(matrix(runif(99), ncol=9), palette = "RdBu") mvtsplot(matrix(runif(99), ncol=9), palette = c("#000000","EFFFFFF"))