Learn R Programming

d3po (version 1.0.3)

po_labels: Labels

Description

Edit labels positioning in a treemap.

Usage

po_labels(
  d3po,
  x = NULL,
  y = NULL,
  title = NULL,
  subtitle = NULL,
  labels = NULL,
  align = "left-top"
)

Value

Appends custom labels to an 'htmlwidgets' object

Arguments

d3po

Either the output of d3po() or d3po_proxy().

x

Optional x-axis label.

y

Optional y-axis label.

title

Optional title for the chart.

subtitle

Optional subtitle for the chart.

labels

Optional character vector or JavaScript function for custom label fields for treemaps.

align

Label alignment for treemaps. Must be one of "left-top", "center-middle", or "right-top".