Skip to content

Conversation

@bjurban
Copy link

@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