Learn R Programming

cryptoQuotes (version 1.3.4)

pline: Line Chart

Description

[Experimental]

A high-level plotly::plot_ly()-function for charting Open, High, Low and Close prices.

Usage

pline(price = "close", ...)

Value

An invisible

plotly::plot_ly()-object.

Arguments

price

A character-vector of length 1. "close" by default.

...

For internal use. Please ignore.

Author

Serkan Korkmaz

See Also

Other price charts: chart(), kline(), ohlc()

Examples

Run this code
# script start;

# Charting BTC using
# line charts with closing price
# as main chart
cryptoQuotes::chart(
  ticker = BTC,
  main = cryptoQuotes::pline(),
  sub = list(
    cryptoQuotes::volume()
  )
)

# script end;

Run the code above in your browser using DataLab