Color scale for Venn diagram
scale_color_venn_mix(
data,
sets = NULL,
colors = c("red", "blue", "green"),
na.value = "grey40",
highlight = NULL,
active_color = "orange",
inactive_color = "NA",
scale = scale_color_manual,
...
)a dataframe including binary columns representing membership in sets
vector with names of columns representing membership in sets
named list of colors for sets (one set=one color)
value for elements not belonging to any of the sets
which regions of the diagram to highlight
color for highlight
color for lack of highlight
the base scale (default=scale_color_manual())
Arguments passed on to ggplot2::scale_color_manual
valuesa set of aesthetic values to map data values to. The values
will be matched in order (usually alphabetical) with the limits of the
scale, or with breaks if provided. If this is a named vector, then the
values will be matched based on the names instead. Data values that don't
match will be given na.value.
aestheticsCharacter string or vector of character strings listing the
name(s) of the aesthetic(s) that this scale works with. This can be useful, for
example, to apply colour settings to the colour and fill aesthetics at the
same time, via aesthetics = c("colour", "fill").
breaksOne of:
NULL for no breaks
waiver() for the default breaks (the scale limits)
A character vector of breaks
A function that takes the limits as input and returns breaks as output