yAxis: Customise Y axis

Description Usage Arguments Examples

Description

Customise Y axis

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
eyAxis(p, show = TRUE, type = "value", append = FALSE, ...)

eyAxis_category(p, show = TRUE, zlevel = 0, z = 0, boundaryGap = FALSE,
  append = FALSE, ...)

eyAxis_value(p, show = TRUE, zlevel = 0, z = 0, position = "left",
  name = NULL, nameLocation = "end", nameTextStyle = list(),
  boundaryGap = list(0, 0), min = NULL, max = NULL, scale = FALSE,
  splitNumber = NULL, append = FALSE, ...)

eyAxis_time(p, show = TRUE, zlevel = 0, z = 0, position = "left",
  name = NULL, nameLocation = "end", nameTextStyle = list(),
  boundaryGap = list(0, 0), min = NULL, max = NULL, scale = FALSE,
  splitNumber = NULL, append = FALSE, ...)

eyAxis_log(p, show = TRUE, zlevel = 0, z = 0, position = "left",
  logLabelBase = NULL, logPositive = NULL, append = FALSE, ...)

Arguments

p

an echart object.

show

whether to show the axis.

type

type of axis takes, value, category, time, log.

append

whether to append options to current axis or override.

...

any other parameter to pass to the axis.

z, zlevel

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

boundaryGap

whether to plot on axis line or between.

position

position of axis, takes bottom, top, left or right.

name

name of the axis.

nameLocation

location of name, takes start or end.

nameTextStyle

style name text.

min, max

min and max values.

scale

If FALSE, the value axis must start with 0. If TRUE, you can set the minimum and maximum value of value axis as the starting and ending value of your value axis.

splitNumber

number of segments, defaults to auto split along with the min/max.

logLabelBase

base log.

logPositive

if FALSE negative values are not supported.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
df <- data.frame(x = c("Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"),
  y = runif(7, 1, 5))

df %>%
  echart(x) %>%
  eline(y) %>%
  exAxis_category(boundaryGap = FALSE)

df %>%
  echart(x) %>%
  ebar(y) %>%
  eyAxis_log()

JohnCoene/echarts documentation built on May 7, 2019, 11:58 a.m.