tickformatter_printf {rbokeh}R Documentation

Tick formatter based on a printf-style format string.

Description

Tick formatter based on a printf-style format string.

Usage

tickformatter_printf(format = "%s", clear = FALSE)

Arguments

format

The number format, as defined in the details below.

clear

A logical indicating whether all non-specified parameters should be cleared out of any exising specification in the figure. This can be useful when modifying a previously-defined figure.

Details

The placeholder in the format string is marked by

Value

A specification that is used as the tickformatter argument for x_axis or y_axis.

Examples

figure() %>%
  ly_points(1:10) %>%
  x_axis(tickformatter = tickformatter_printf(format = "%5.3f mu"))

[Package rbokeh version 0.6.3 Index]