make_styles | R Documentation |
vectorized make_styles for crayon output
make_styles(
style = NULL,
text,
bg = FALSE,
bg_style = NULL,
grey = FALSE,
colors = num_colors(),
Cgrey = getOption("jam.Cgrey", 5),
lightMode = NULL,
Crange = getOption("jam.Crange"),
Lrange = getOption("jam.Lrange"),
adjustRgb = getOption("jam.adjustRgb"),
adjustPower = 1.5,
fixYellow = TRUE,
colorTransparent = "grey45",
alphaPower = 2,
setOptions = c("ifnull", "FALSE", "TRUE"),
verbose = FALSE,
...
)
style |
|
text |
|
bg |
|
bg_style |
|
colors |
|
Cgrey |
|
lightMode |
|
Crange |
|
Lrange |
|
adjustRgb |
|
adjustPower |
|
fixYellow |
|
colorTransparent |
|
alphaPower |
|
setOptions |
|
verbose |
|
... |
additional parameters are ignored |
satCutoff |
|
This function is essentially a vectorized version of
crayon::make_style()
in order to style a vector of
character strings with a vector of foreground and background styles.
character
vector with the same length as text
input vector, where
entries are surrounded by the relevant encoding consistent with
the style
defined at input. In short, a character vector as input,
a colorized character vector as output.
Other jam practical functions:
breakDensity()
,
checkLightMode()
,
check_pkg_installed()
,
colNum2excelName()
,
color_dither()
,
diff_functions()
,
exp2signed()
,
fileInfo()
,
fixYellow()
,
getAxisLabel()
,
handleArgsText()
,
heads()
,
isFALSEV()
,
isTRUEV()
,
jamba
,
jargs()
,
kable_coloring()
,
lldf()
,
log2signed()
,
make_html_styles()
,
match_unique()
,
mergeAllXY()
,
middle()
,
minorLogTicks()
,
newestFile()
,
printDebug()
,
renameColumn()
,
rmInfinite()
,
rmNAs()
,
rmNA()
,
rmNULL()
,
sclass()
,
sdim()
,
setPrompt()
Other jam color functions:
alpha2col()
,
applyCLrange()
,
col2alpha()
,
col2hcl()
,
col2hsl()
,
col2hsv()
,
color2gradient()
,
fixYellowHue()
,
fixYellow()
,
getColorRamp()
,
hcl2col()
,
hsl2col()
,
hsv2col()
,
isColor()
,
kable_coloring()
,
makeColorDarker()
,
make_html_styles()
,
rgb2col()
,
setCLranges()
,
setTextContrastColor()
,
showColors()
,
unalpha()
,
warpRamp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.