Skip to content

added ability to accept any color palette, rather than just the ones nam...#2

Open
bjurban wants to merge 1 commit intordpeng:masterfrom
bjurban:master
Open

added ability to accept any color palette, rather than just the ones nam...#2
bjurban wants to merge 1 commit intordpeng:masterfrom
bjurban:master

Conversation

@bjurban
Copy link
Copy Markdown

@bjurban bjurban commented Feb 19, 2015

...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"))

…named 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"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant