Apply color channel numeric range cap
apply_color_cap(x, channel = "l", range = c(0, 100), space = "hcl", ...)
vector colors, or list of color vectors. When input
is a list
, the list is flattened, operations are performed,
then the result is split back into the original structure.
character channel recognized by farver::set_channel()
.
numeric range allowed for values returned by
farver::get_channel()
.
character name of a color space recognized by
farver::set_channel()
.
additional arguments are passed to farver::get_channel()
and farver::set_channel()
.
This function extends farver::set_channel()
by enforcing
a numeric range for any numeric channel accessible by
the farver
package. Common use is to restrict the luminance
"l"
channel of an "hcl"
color from c(0,100)
to c(70,100)
in order to make all colors brighter.
Other jam utility functions:
avg_angles()
,
avg_colors_by_list()
,
call_fn_ellipsis_deprecated()
,
cell_fun_bivariate()
,
collapse_mem_clusters()
,
colorRamp2D()
,
deconcat_df2()
,
display_colorRamp2D()
,
enrichList2geneHitList()
,
find_colname()
,
gsubs()
,
handle_igraph_param_list()
,
heatmap_column_order()
,
heatmap_row_order()
,
isColorBlank()
,
make_legend_bivariate()
,
make_point_hull()
,
mem_find_overlap()
,
order_colors()
,
rank_mem_clusters()
,
rotate_coordinates()
,
sort_colors_deprecated()
,
subgraph_jam()
,
xyAngle()