Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colorblind Safe Palette For Function Coverage #141

Merged
merged 2 commits into from
Dec 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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