Create 2D color dataframe for gene/ADT coexpression
get_color_matrix_df(ngrid = 16)
integer setting the resolution (dimensions) of color grid (e.g., ngrid = 16 sets a 16x16 color grid). Default is ngrid=16.
dataframe for use in coexpression legend
get_color_matrix_df(10)
#> x_value y_value R G B hex_color_mix
#> 1 0 0 217.00 217.00 217.00 #D9D9D9
#> 2 1 0 220.80 195.30 195.30 #DCC3C3
#> 3 2 0 224.60 173.60 173.60 #E0ADAD
#> 4 3 0 228.40 151.90 151.90 #E49797
#> 5 4 0 232.20 130.20 130.20 #E88282
#> 6 5 0 236.00 108.50 108.50 #EC6C6C
#> 7 6 0 239.80 86.80 86.80 #EF5656
#> 8 7 0 243.60 65.10 65.10 #F34141
#> 9 8 0 247.40 43.40 43.40 #F72B2B
#> 10 9 0 251.20 21.70 21.70 #FB1515
#> 11 10 0 255.00 0.00 0.00 #FF0000
#> 12 0 1 195.30 195.30 220.80 #C3C3DC
#> 13 1 1 201.27 175.77 201.27 #C9AFC9
#> 14 2 1 207.24 156.24 181.74 #CF9CB5
#> 15 3 1 213.21 136.71 162.21 #D588A2
#> 16 4 1 219.18 117.18 142.68 #DB758E
#> 17 5 1 225.15 97.65 123.15 #E1617B
#> 18 6 1 231.12 78.12 103.62 #E74E67
#> 19 7 1 237.09 58.59 84.09 #ED3A54
#> 20 8 1 243.06 39.06 64.56 #F32740
#> 21 9 1 249.03 19.53 45.03 #F9132D
#> 22 10 1 255.00 0.00 25.50 #FF0019
#> 23 0 2 173.60 173.60 224.60 #ADADE0
#> 24 1 2 181.74 156.24 207.24 #B59CCF
#> 25 2 2 189.88 138.88 189.88 #BD8ABD
#> 26 3 2 198.02 121.52 172.52 #C679AC
#> 27 4 2 206.16 104.16 155.16 #CE689B
#> 28 5 2 214.30 86.80 137.80 #D65689
#> 29 6 2 222.44 69.44 120.44 #DE4578
#> 30 7 2 230.58 52.08 103.08 #E63467
#> 31 8 2 238.72 34.72 85.72 #EE2255
#> 32 9 2 246.86 17.36 68.36 #F61144
#> 33 10 2 255.00 0.00 51.00 #FF0033
#> 34 0 3 151.90 151.90 228.40 #9797E4
#> 35 1 3 162.21 136.71 213.21 #A288D5
#> 36 2 3 172.52 121.52 198.02 #AC79C6
#> 37 3 3 182.83 106.33 182.83 #B66AB6
#> 38 4 3 193.14 91.14 167.64 #C15BA7
#> 39 5 3 203.45 75.95 152.45 #CB4B98
#> 40 6 3 213.76 60.76 137.26 #D53C89
#> 41 7 3 224.07 45.57 122.07 #E02D7A
#> 42 8 3 234.38 30.38 106.88 #EA1E6A
#> 43 9 3 244.69 15.19 91.69 #F40F5B
#> 44 10 3 255.00 0.00 76.50 #FF004C
#> 45 0 4 130.20 130.20 232.20 #8282E8
#> 46 1 4 142.68 117.18 219.18 #8E75DB
#> 47 2 4 155.16 104.16 206.16 #9B68CE
#> 48 3 4 167.64 91.14 193.14 #A75BC1
#> 49 4 4 180.12 78.12 180.12 #B44EB4
#> 50 5 4 192.60 65.10 167.10 #C041A7
#> 51 6 4 205.08 52.08 154.08 #CD349A
#> 52 7 4 217.56 39.06 141.06 #D9278D
#> 53 8 4 230.04 26.04 128.04 #E61A80
#> 54 9 4 242.52 13.02 115.02 #F20D73
#> 55 10 4 255.00 0.00 102.00 #FF0066
#> 56 0 5 108.50 108.50 236.00 #6C6CEC
#> 57 1 5 123.15 97.65 225.15 #7B61E1
#> 58 2 5 137.80 86.80 214.30 #8956D6
#> 59 3 5 152.45 75.95 203.45 #984BCB
#> 60 4 5 167.10 65.10 192.60 #A741C0
#> 61 5 5 181.75 54.25 181.75 #B536B5
#> 62 6 5 196.40 43.40 170.90 #C42BAA
#> 63 7 5 211.05 32.55 160.05 #D320A0
#> 64 8 5 225.70 21.70 149.20 #E11595
#> 65 9 5 240.35 10.85 138.35 #F00A8A
#> 66 10 5 255.00 0.00 127.50 #FF007F
#> 67 0 6 86.80 86.80 239.80 #5656EF
#> 68 1 6 103.62 78.12 231.12 #674EE7
#> 69 2 6 120.44 69.44 222.44 #7845DE
#> 70 3 6 137.26 60.76 213.76 #893CD5
#> 71 4 6 154.08 52.08 205.08 #9A34CD
#> 72 5 6 170.90 43.40 196.40 #AA2BC4
#> 73 6 6 187.72 34.72 187.72 #BB22BB
#> 74 7 6 204.54 26.04 179.04 #CC1AB3
#> 75 8 6 221.36 17.36 170.36 #DD11AA
#> 76 9 6 238.18 8.68 161.68 #EE08A1
#> 77 10 6 255.00 0.00 153.00 #FF0099
#> 78 0 7 65.10 65.10 243.60 #4141F3
#> 79 1 7 84.09 58.59 237.09 #543AED
#> 80 2 7 103.08 52.08 230.58 #6734E6
#> 81 3 7 122.07 45.57 224.07 #7A2DE0
#> 82 4 7 141.06 39.06 217.56 #8D27D9
#> 83 5 7 160.05 32.55 211.05 #A020D3
#> 84 6 7 179.04 26.04 204.54 #B31ACC
#> 85 7 7 198.03 19.53 198.03 #C613C6
#> 86 8 7 217.02 13.02 191.52 #D90DBF
#> 87 9 7 236.01 6.51 185.01 #EC06B9
#> 88 10 7 255.00 0.00 178.50 #FF00B2
#> 89 0 8 43.40 43.40 247.40 #2B2BF7
#> 90 1 8 64.56 39.06 243.06 #4027F3
#> 91 2 8 85.72 34.72 238.72 #5522EE
#> 92 3 8 106.88 30.38 234.38 #6A1EEA
#> 93 4 8 128.04 26.04 230.04 #801AE6
#> 94 5 8 149.20 21.70 225.70 #9515E1
#> 95 6 8 170.36 17.36 221.36 #AA11DD
#> 96 7 8 191.52 13.02 217.02 #BF0DD9
#> 97 8 8 212.68 8.68 212.68 #D408D4
#> 98 9 8 233.84 4.34 208.34 #E904D0
#> 99 10 8 255.00 0.00 204.00 #FF00CC
#> 100 0 9 21.70 21.70 251.20 #1515FB
#> 101 1 9 45.03 19.53 249.03 #2D13F9
#> 102 2 9 68.36 17.36 246.86 #4411F6
#> 103 3 9 91.69 15.19 244.69 #5B0FF4
#> 104 4 9 115.02 13.02 242.52 #730DF2
#> 105 5 9 138.35 10.85 240.35 #8A0AF0
#> 106 6 9 161.68 8.68 238.18 #A108EE
#> 107 7 9 185.01 6.51 236.01 #B906EC
#> 108 8 9 208.34 4.34 233.84 #D004E9
#> 109 9 9 231.67 2.17 231.67 #E702E7
#> 110 10 9 255.00 0.00 229.50 #FF00E5
#> 111 0 10 0.00 0.00 255.00 #0000FF
#> 112 1 10 25.50 0.00 255.00 #1900FF
#> 113 2 10 51.00 0.00 255.00 #3300FF
#> 114 3 10 76.50 0.00 255.00 #4C00FF
#> 115 4 10 102.00 0.00 255.00 #6600FF
#> 116 5 10 127.50 0.00 255.00 #7F00FF
#> 117 6 10 153.00 0.00 255.00 #9900FF
#> 118 7 10 178.50 0.00 255.00 #B200FF
#> 119 8 10 204.00 0.00 255.00 #CC00FF
#> 120 9 10 229.50 0.00 255.00 #E500FF
#> 121 10 10 255.00 0.00 255.00 #FF00FF