hputnam / Meth_Compare

5 stars 2 forks source link

Choose color palette and 3 specific colors for methods and standardize across graphics #74

Closed hputnam closed 4 years ago

hputnam commented 4 years ago

@yaaminiv @shellytrigg any ideas?

hputnam commented 4 years ago

It looks like for most figures, WGBS is green, RRBS is blue, and MBDBS is red. Figure 1 has WGBS and RRBS reversed.

yaaminiv commented 4 years ago

I think on Slack we decided to move away from red/green contrasts and go with orange, green, and purple instead! I can put together a color palette and confirm accessibility with dichromat.

yaaminiv commented 4 years ago

WGBS: green RRBS: purple MBD-BS: orange

I have 2 different color palettes: one with 3 shades and one with 5 shades. I have the code for each palette, hex codes for each color, and the revised plot so you can see what the colors look like.

3 shades (CpG methylation status)

plotColors <- c(rev(RColorBrewer::brewer.pal(3, "Greens")), 
                rev(RColorBrewer::brewer.pal(3, "Purples")), 
                rev(RColorBrewer::brewer.pal(3, "Oranges"))) #Create vector of WGBS, RRBS, and MBD colors

Hex codes:

Greens: -"#31A354"

Purples:

Oranges:

Screen Shot 2020-06-17 at 3 57 14 PM

5 shades (CpG genomic location)

plotColors2 <- c("grey20", "grey40", "grey60", "grey80", "grey100", 
                rev(RColorBrewer::brewer.pal(5, "Greens")), 
                rev(RColorBrewer::brewer.pal(5, "Purples")), 
                rev(RColorBrewer::brewer.pal(5, "Oranges")))

Hex codes (not including greyscale):

Greens:

Purples:

Oranges:

Screen Shot 2020-06-17 at 3 56 48 PM