etitle: Add title

Description Usage Arguments See Also Examples

View source: R/options.R

Description

Add chart title and subtitles.

Usage

1
2
3
4
5
etitle(p, text, subtext, link, sublink, target = "blank",
  subtarget = "blank", x = "left", y = "top",
  backgroundColor = "rgba(0,0,0,0)", borderColor = "#ccc",
  borderWidth = 0, padding = 5, itemGap = 5, zlevel = 0, z = 6,
  show = TRUE, ...)

Arguments

p

an echart object.

text

title.

subtext

subtitle.

link

hyperlink.

sublink

subtext hyperlink.

target

link opening window: self or blank.

subtarget

sublink opening window: self or blank.

x

positon of title, left or right.

y

postion of title, top, bottom or center.

backgroundColor

background color.

borderColor

border color.

borderWidth

width of border.

padding

padding.

itemGap

gap between title and subtitle.

z, zlevel

first and second grade cascading control, the higher z the closer to the top.

show

whether to show the title.

...

any other options to pass to title

See Also

official title docs

Examples

1
2
3
4
mtcars %>%
  echart(disp) %>%
  eline(mpg) %>%
  etitle("MPG vs DISP", "Made with EChart", link = "http://echarts.baidu.com", target = "blank")

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.