rbtc.plot: Plot Rbitcoin objects

Description Usage Arguments Value Note See Also Examples

View source: R/plot.R

Description

Generic function to plot different objects returned by some Rbitcoin functions.

Usage

1
rbtc.plot(x, ..., verbose = getOption("Rbitcoin.verbose", 0))

Arguments

x

object to be plotted, result of Rbitcoin function, currently supported: market.api.process(action=c("trades","order_book")) and wallet_manager.

verbose

integer. Rbitcoin processing messages, print to console if verbose > 0, each subfunction reduce verbose by 1. If missing then getOption("Rbitcoin.verbose",0) is used.

...

additional params to be passed to particular plot function.

Value

by side effect a base plot.

Note

For wallet manager plot legend may not scale well in interactive viewer, for better scaling save plot to file, see examples.

See Also

rbtc.plot.trades, rbtc.plot.order_book, rbtc.plot.wallet_manager

Examples

 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)

jangorecki/Rbitcoin documentation built on May 18, 2019, 12:24 p.m.