{ "cells": [ { "cell_type": "markdown", "id": "dcf8a257", "metadata": {}, "source": [ "# Text Setting for Annotations\n", "\n", "Use the `labelText` parameter in `theme()` to set basic text settings for annotations, using the `elementText()` function with the following parameters: \n", "\n", "- family - font family;\n", "- face - font face (\"plain\", \"italic\", \"bold\", \"bold_italic\");\n", "- size - text size, can also be specified via `layerLabels().size()`;\n", "- color - text color, relevant for pie chart annotations.\n" ] }, { "cell_type": "code", "execution_count": 1, "id": "d8278ae9", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "DataFrame: rowsCount = 3, columnsCount = 12
\n", "| untitled | manufacturer | model | displ | year | cyl | trans | drv | cty | hwy | fl | class |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | audi | a4 | 1.800000 | 1999 | 4 | auto(l5) | f | 18 | 29 | p | compact |
| 2 | audi | a4 | 1.800000 | 1999 | 4 | manual(m5) | f | 21 | 29 | p | compact |
| 3 | audi | a4 | 2.000000 | 2008 | 4 | manual(m6) | f | 20 | 31 | p | compact |