Description Usage Arguments Value wallet manager archive See Also Examples
View source: R/plot_wallet_manager.R
Plot wallet manager results archive
1 2 3 |
wallet_dt |
data.table, result from |
type |
character, type of plot: |
mask |
logical default |
verbose |
integer. Rbitcoin processing messages, print to console if |
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.
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.