xtitle_ist: Add x axis title

Description Usage Arguments Examples

View source: R/plugins.R

Description

Add x axis title

Usage

1
2
xtitle_ist(p, title = "", textAnchor = "middle", flipTitle = FALSE,
  offsetx = 0, offsety = 0)

Arguments

p

a chartist object.

title

axis title.

textAnchor

title position, defaults to middle.

flipTitle

set to TRUE to flip title on x axis.

offsetx

offset x aligment of title.

offsety

offsety y alignment of title.

Examples

1
2
3
4
mtcars %>%
    chart_ist(disp) %>%
    add_ist(values = hp) %>%
    xtitle_ist(title = "HP", offsety = 30)

JohnCoene/chartist documentation built on May 7, 2019, 11:17 a.m.