-
|
Hello, Is there a way to customize the lines colors/width/style of a chart? I tried color = "red" and it did not work. TIA. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @andreltr, The library(cryptoQuotes)# get BTCUSDT
# pair
BTC <- get_quote(
ticker = "BTCUSDT",
source = "bybit"
)# chart with bollinger bands
# in red
chart(
ticker = BTC,
main = kline(),
sub = list(
volume()
),
indicator = list(
bollinger_bands(
color = "red"
)
)
)Hacking the
|
Beta Was this translation helpful? Give feedback.


Hi @andreltr,
The
chart()-function and family is rather high-level and restricted in customization. However, some elements of the chart can be modified in itscolor. Below is an example for thebollinger_bands()-function,library(cryptoQuotes)Hacking the
chart()-functionThe rendered chart is from {plotly}, and can be modified using the
layout()-function. Below is an example where thetitleis changed and asubtitleis c…