amText: Text

View source: R/text.R

amTextR Documentation

Text

Description

Create a list of settings for a text.

Usage

amText(
  text,
  color = NULL,
  fontSize = NULL,
  fontWeight = "normal",
  fontFamily = NULL
)

Arguments

text

the text to display, a character string

color

color of the text; it can be given by the name of a R color, the name of a CSS color, e.g. "crimson", an HEX code like "#ff009a", a RGB code like "rgb(255,100,39)", or a HSL code like "hsl(360,11,255)"

fontSize

size of the text

fontWeight

font weight of the text, it can be "normal", "bold", "bolder", "lighter", or a number in seq(100, 900, by = 100)

fontFamily

font family

Value

A list of settings for a text.

Note

There is no option for the font style; you can get an italicized text by entering text = "[font-style:italic]Your text[/]".


rAmCharts4 documentation built on Sept. 22, 2022, 5:05 p.m.