Parses annotations in the context of data. Special characters and syntax are substituted by actual data and/or substituted for format that is better parsed via rendering functions (e.g. plotly).
Source:R/utils-tlg.R
parse_annotation.Rd
Parses annotations in the context of data. Special characters and syntax are substituted by actual data and/or substituted for format that is better parsed via rendering functions (e.g. plotly).
Details
\n
character is substituted for<br>
tag in order to add new lines in rendered image.$COLNAME
is parsed to provide unique data value from the mentioned column.!COLNAME
is parsed to providelabel
attribute for a given column name. If any values are missing from the provided data, they are substituted forERR
string.