Skip to content

Color palettes #34

Open
Open

Description

@gorkang

Should come back to see how we can improve the color palettes for PPV and NPV.

A few different goals:

  • Improve clarity and differentiation between natural thresholds (25, 50, 75%)
  • Make sure the palettes are OK for colorblind people
  • Add ability to choose from different palettes

Example code of palettes attempts:

    # https://www.google.com/search?q=color+picker
    if (PPV_NPV == "PPV") {
      # Paleta_DV = c("white", "grey", "gray30", "yellowgreen", "chartreuse4") #Original
      # # Paleta_DV = c("#ffffff", "#777777", "#464646", "#9ACD32", "#458B00") #Hex names
      Paleta_DV = c("white", "grey", "1b2610", "yellowgreen", "chartreuse4") #Original
      
      # Paleta_DV = c("#ffffff", "#666666", "#1b2610", "#9ACD32", "#458B00") # More contrast greys
    } else if (PPV_NPV == "NPV") {
      # Paleta_DV = c("white", "grey", "gray30", "yellowgreen", "chartreuse4")
      # Paleta_DV = c("#ffffff", "#777777", "#464646", "#ff8e47", "#cc4e00") # Orange
      # Paleta_DV = c("#ffffff", "#777777", "#464646","#b66afc", "#420080") # Violet
      Paleta_DV = c("#ffffff", "grey", "#190d24","#bd7afa", "#420080") # Violet
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions