amText {rAmCharts4}R 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[/]".


[Package rAmCharts4 version 1.6.0 Index]