Closed boyiguo1 closed 11 months ago
Also, currently, there is no way to change the fill value for NA
in clustervar
from the default dark grey to anything else using the colors
argument, unless to manually create a level for NA
in clustervar
Yes, that's true that you would need to some workarounds to control the color of NA
values.
@boyiguo1, version 1.13.6 now implements the na_color
option on vis_clus_p()
, vis_clus()
, and vis_grid_clus()
.
If I understand correctly, the color blending for
NA
values are not implemented invis_clus
yet.https://github.com/LieberInstitute/spatialLIBD/blob/bceb64dbe3ac6abbb39ce5e9233b7d4b978ce334/R/vis_clus_p.R#L115
Referencing to
vis_gene
, I think the implementation forvis_clus
should be fairly easy, by addingna.value = "#CCCCCC40"
toscale_fill_manual
function