Skip to content

Commit

Permalink
Merge pull request uptake#141 from bburns632/feature/colorBlindPalette
Browse files Browse the repository at this point in the history
Colorblind Safe Palette For Function Coverage
  • Loading branch information
jayqi committed Dec 3, 2018
2 parents 87a924e + 4da98ae commit 05d2080
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/PackageFunctionReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ FunctionReporter <- R6::R6Class(
# Set Graph to Color By Coverage
private$set_plot_node_color_scheme(
field = "coverageRatio"
, palette = c("red", "green")
# colorbrewer2.org PiYG - Colorblind Safe Palatte
, palette = c("#e9a3c9" # Shocking - low values
, "#f7f7f7" # White Smoke - mid range values
, "#a1d76a" # Feijoa - high values
)
)

# Calculate network measures since we need outBetweeness
Expand Down

0 comments on commit 05d2080

Please sign in to comment.