davidhodge931 / ggblanket

Simplify ggplot2 visualisation
https://davidhodge931.github.io/ggblanket/
Other
150 stars 8 forks source link

weave_geom_defaults: how to manage alpha #953

Closed davidhodge931 closed 1 month ago

davidhodge931 commented 2 months ago

boxplot crossbar density ribbon smooth

alpha_fill_base = 0.9 alpha_fill_multiplier = 0.66

davidhodge931 commented 2 months ago

set_blanket(
  colour = "red",
  fill = NULL,
  alpha_fill = 0.9,
  alpha_fill2 = 0.6,
  linewidth = 0.66,
)  
davidhodge931 commented 1 month ago
set_blanket(
  colour = "red",
  fill = NULL,
  alpha_line = 1,
  alpha_fill = c(0.9, 0.67)
  linewidth = 0.66
)  
davidhodge931 commented 1 month ago
set_blanket(
  colour = "red",
  fill = NULL,
  alpha_line = 1,
  alpha_fill_high = 0.9
  alpha_fill_low = 0.6
  linewidth = 0.66
)  
davidhodge931 commented 1 month ago
set_blanket(
  colour = "red",
  fill = NULL,
  alpha1 = 1,
  alpha2 = 0.9,
  alpha3 = 0.6, 
)  
davidhodge931 commented 1 month ago
set_blanket(
  colour = "red",
  fill = NULL,
  # alpha = weave_geom_alpha()

  alpha_boxplot = 0.9,
  alpha_density = 0.9,
  alpha_ribbon = 0.9,
  alpha_smooth = 0.9,
  alpha_area = 0.9,
  alpha_bar = 0.9,
  alpha_col = 0.9,
  alpha_boxplot = 0.9,
  alpha_boxplot = 0.9,
  alpha_boxplot = 0.9,
  alpha_boxplot = 0.9,
  alpha_boxplot = 0.9,
  alpha_boxplot = 0.9,

  linewidth = 0.66,
  size_point = 1.5,
  size_pointrange = 10,
)  
davidhodge931 commented 1 month ago
set_blanket(
  mode = light_mode_r(),

  colour = "#357BA2FF",
  colour_text = "#121B24FF",
  colour_label = colour_text,
  colour_reference_line = colour_text,
  colour_curve = colour_text,

  fill = colour,
  fill_label = colour_label,

  linewidth = 0.66,
  linewidth_reference_line = 0.33,
  linewidth_curve = linewidth_reference_line,

  alpha_area = 0.9,
  alpha_bar = 0.9,
  alpha_boxplot = 0.9,
  alpha_col = 0.9,
  alpha_contour = 0.9,
  alpha_crossbar = 0.6,
  alpha_density = 0.6,
  alpha_label = 0.05,
  alpha_polygon = 0.9,
  alpha_rect = 0.9,
  alpha_ribbon = 0.6,
  alpha_smooth = 0.6,
  alpha_violin = 0.9,

  size_point = 1.5,
  size_pointrange = 0.2,
  size_sf = 1.5,
  size_text = 11 / 2.835052,
  size_label = size_text,

  family = "",

  col_palette_d = jumble,
  col_palette_na_d = "#CDC5BFFF",
  col_palette_c = viridisLite::mako(n = 9, direction = -1),
  col_palette_na_c = "#988F88FF",
  col_palette_o = scales::pal_viridis(option = "G", direction = -1),
  col_palette_na_o = "#988F88FF",
)
davidhodge931 commented 1 month ago

Sorted :) :) :)