Stroke properties
ax_stroke( ax, show = NULL, curve = NULL, lineCap = NULL, width = NULL, colors = NULL, dashArray = NULL, ... )
ax | A |
---|---|
show | Logical. To show or hide path-stroke / line |
curve | In line / area charts, whether to draw smooth lines or straight lines.
Available Options: |
lineCap | For setting the starting and ending points of stroke. Available Options:
|
width | Sets the width of border for svg path. |
colors | Colors to fill the border for paths. |
dashArray | Creates dashes in borders of svg path. Higher number creates more space between dashes in the border. |
... | Additional parameters. |
A apexcharts
htmlwidget
object.
See https://apexcharts.com/docs/options/stroke/
data("economics", package = "ggplot2") apex( data = economics, mapping = aes(x = date, y = uempmed), type = "line" ) %>% ax_stroke( width = 1, dashArray = 4 ) data("economics_long", package = "ggplot2") apex( data = economics_long, mapping = aes(x = date, y = value01, group = variable), type = "line" ) %>% ax_stroke( width = c(1, 2, 3, 4, 5), dashArray = c(1, 2, 3, 4, 5) )