Description Usage Arguments Value Note See Also Examples
Generic function to plot different objects returned by some Rbitcoin functions.
1 |
x |
object to be plotted, result of Rbitcoin function, currently supported: |
verbose |
integer. Rbitcoin processing messages, print to console if |
... |
additional params to be passed to particular plot function. |
by side effect a base plot.
For wallet manager plot legend may not scale well in interactive viewer, for better scaling save plot to file, see examples.
rbtc.plot.trades
, rbtc.plot.order_book
, rbtc.plot.wallet_manager
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
# fetch trades
trades <- market.api.process('kraken',c('BTC','EUR'),'trades')
# plot trades
rbtc.plot(trades)
# fetch order_book
order_book <- market.api.process('kraken',c('LTC','EUR'),'order_book')
# plot order book
rbtc.plot(order_book)
rbtc.plot(order_book, limit_pct = 0.5)
# plot wallet_manager archive to svg file
wallet_dt <- wallet_manager(archive_write=FALSE, archive_read=TRUE)
svg("wallet_value.svg")
rbtc.plot(wallet_dt)
dev.off()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.