make a barplot that has different densities of the same color for pops within the same reporting unit
1 2 3 | to_pops_barplot(ass_array, rep_groups,
col.pairs = matrix(c(brewerPairs("Reds"), brewerPairs("Blues"),
brewerPairs("Greens"), "yellow", "khaki"), nrow = 2))
|
ass_array |
An assignment array with rows being from and cols being "to". Where individuals are assigned to populations. |
rep_groups |
a factor vector given the reporting groups each populations belongs to. For this to work, the pops must all be ordered so that they are all next to one another within reporting groups |
col.pairs |
matrix of pairs of colors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.