Description Usage Arguments Examples
Customise Y axis
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, ...)
|
p |
an echart object. |
show |
whether to show the axis. |
type |
type of axis takes, |
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 |
name |
name of the axis. |
nameLocation |
location of |
nameTextStyle |
style |
min, max |
min and max values. |
scale |
If |
splitNumber |
number of segments, defaults to auto split along with the min/max. |
logLabelBase |
base log. |
logPositive |
if |
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.