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.R
parse_annotation.RdParses 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
\ncharacter is substituted for<br>tag in order to add new lines in rendered image.$COLNAMEis parsed to provide unique data value from the mentioned column.!COLNAMEis parsed to providelabelattribute for a given column name. If any values are missing from the provided data, they are substituted forERRstring.