mhahsler / seriation

Infrastructure for Ordering using Seriation - R Package
GNU General Public License v3.0
75 stars 17 forks source link

fill color in bertinplot has not effect #6

Closed Derek-Jones closed 6 years ago

Derek-Jones commented 6 years ago

In the code:

bertinplot(fmat, fser,  options=list(panel=panel.squares, spacing=0,
                                                    gp_panels=gpar(col="green", fill="red")))

The col setting results in green lines, but the fill option has no effect (i.e., the fill color remains black)

Looking at the code, the variable hl does not appears to get its value from the highlight variable.

mhahsler commented 6 years ago

highlight and shading overwrites the fill argument that you specify. I have updated the code so fill now replaces the color correctly. You now can also specify a matrix with color values for all the panels in highlight.

mhahsler commented 6 years ago

Please check out the version on GitHub. The changes will be part of the next release.