rbtc.plot.wallet_manager: Plot wallet manager results

Description Usage Arguments Value wallet manager archive See Also Examples

View source: R/plot_wallet_manager.R

Description

Plot wallet manager results archive

Usage

1
2
3
rbtc.plot.wallet_manager(wallet_dt, type = c("value", "recent"),
  mask = getOption("Rbitcoin.plot.mask", FALSE),
  verbose = getOption("Rbitcoin.verbose", 0))

Arguments

wallet_dt

data.table, result from wallet_manager

type

character, type of plot: "value" - wallet value in time, "amount" - wallet amount in time (not yet supported), "recent" - recent wallet.

mask

logical default FALSE. If set to TRUE it will mask sensitive informations such as: amounts, values, blockchain addresses, auth accounts.

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.

Value

invisibily NULL. Side effect a base plot, for type "value" or "amount" the dashboard panel to track different measures of your assets over time. For type "recent" a base plot of the most recent non-NA measures wallet data.

wallet manager archive

To be able to track wallet assets value over time user needs to use archive_write=TRUE at least twice in wallet_manager processing (with non-NA measures). Using the cryptocurrency which do not have any exchange path to transfer_currency_pair and/or value_currency will result NA as value. Error on data downloading from external sources (wallets or exchange rates) will also result NA. Any wallet processing batch which will contains at least one NA measure will be omitted from plot. If you have some crypto not currenctly supported you may extend dictionary for more currencies or provide its value as manual source to wallet_manager already calculated in common value currency, remember to comment out the previous source which returns the NA measure.
To plot wallet manager data load wallet archive data, see examples. Target value currency is taken from the last execution of wallet_manager archive.

See Also

wallet_manager, rbtc.plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
wallet_dt <- wallet_manager(archive_write=FALSE, archive_read=TRUE)
# plot wallet value over time
rbtc.plot(wallet_dt)
# the same but with masked sensitive data
rbtc.plot(wallet_dt, mask=TRUE)
# legend lookS better when plot to file
svg("wallet_value.svg")
rbtc.plot(wallet_dt, type="value", mask=TRUE)
dev.off()
# plot recent wallet value
rbtc.plot(wallet_dt, type="recent")

## End(Not run)

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