symbol: Get a desired symbol

Description Usage Arguments Value Complete cheatcheat for symbols Examples

View source: R/symbol.R

Description

Get a symbol by name or numberfor use in Rmarkdown or Shiny apps, could be a mathematical symbol or other kinds of symbols

Usage

1
2
3
4
5
6
7
8
symbol(
  ...,
  font.size = NULL,
  font.weight = NULL,
  font.color = NULL,
  if.error = FALSE,
  search.units.each = FALSE
)

Arguments

...

the symbols to display

font.size

font size as integer

font.weight

font weight as integer

font.color

font color e.g. red, blue, cyan

if.error

error response

search.units.each

whether to search single letter columns

Value

symbol hex for HTML integration

Complete cheatcheat for symbols

Common symbols include alpha, beta, copyright, registered, theta, sigma. See the complete list at https://github.com/oobianom/r2symbols.

Examples

1
2
3
4
symbol("trademark")
symbol("alpha")
symbol("arrow-right")
symbol(144)

r2symbols documentation built on Sept. 13, 2020, 5:18 p.m.