Skip to contents

Configuration for axis labels. Combines label-specific positioning with text styling (flattened in to_list like LabelOption).

Usage

AxisLabel(
  show = NULL,
  inside = NULL,
  rotate = NULL,
  margin = NULL,
  formatter = NULL,
  show_min_label = NULL,
  show_max_label = NULL,
  hide_overlap = NULL,
  interval = NULL,
  text_style = NULL
)

Arguments

show

Optional Logical: Whether to show axis labels.

inside

Optional Logical: Whether labels are inside the grid.

rotate

Optional Numeric: Label rotation angle in degrees.

margin

Optional Numeric [0, Inf): Space between the label and axis line in pixels.

formatter

Optional Character or function: Label formatter.

show_min_label

Optional Logical: Whether to show the label at the minimum end.

show_max_label

Optional Logical: Whether to show the label at the maximum end.

hide_overlap

Optional Logical: Whether to hide overlapping labels.

interval

Optional Numeric or Character {"auto"}: Label interval.

text_style

Optional TextStyle: Text appearance.

Value

AxisLabel object.

Details

Corresponds to AxisLabelBaseOption in src/coord/axisCommonTypes.ts (line 312). ECharts docs: https://echarts.apache.org/en/option.html#xAxis.axisLabel

Examples

AxisLabel(show = TRUE, rotate = 45, margin = 8)
#> <rtemis.draw::AxisLabel>
#>  @ show          : logi TRUE
#>  @ inside        : NULL
#>  @ rotate        : num 45
#>  @ margin        : num 8
#>  @ formatter     : NULL
#>  @ show_min_label: NULL
#>  @ show_max_label: NULL
#>  @ hide_overlap  : NULL
#>  @ interval      : NULL
#>  @ text_style    : NULL