## Not run:
# # plot trades data from kraken's api
# trades <- market.api.process('kraken',c('BTC','EUR'),'trades')
# Rbitcoin.plot(trades)
# Rbitcoin.plot(trades,export=TRUE,col='blue') #export to file, plot trades line in blue
#
# # plot order book data from kraken's api
# order_book <- market.api.process('kraken',c('BTC','EUR'),'order_book')
# Rbitcoin.plot(order_book)
#
# # plot order book with filtering margins based on order price
# order_book <- market.api.process('bitmarket',c('BTC','PLN'),'order_book')
# pct <- 0.75
# mid <- ((order_book[["asks"]][1,price] + order_book[["bids"]][1,price]) / 2)
# order_book[["asks"]] <- order_book[["asks"]][price <= mid * (1+pct)]
# order_book[["bids"]] <- order_book[["bids"]][price >= mid * (1-pct)]
# Rbitcoin.plot(order_book)
#
# # plot wallet manager data (from local archive) - for details read ?waller_manager
# wallet_dt <- wallet_manager(archive_write=F, archive_read=T) #readRDS("wallet_archive.rds")
# Rbitcoin.plot(wallet_dt) # plot in R
# Rbitcoin.plot(wallet_dt[value>=100 | is.na(value)]) # filter out low value from plot
# Rbitcoin.plot(wallet_dt, export=T) # export to svg
# # mask value with ratio value and save to png
# Rbitcoin.plot(wallet_dt,mask=T,export=T,
# export.args=list(format="png",
# width = 2*480,
# height = 2*480,
# units = "px",
# pointsize = 18))
# # mask value with ratio and mask bitcoin addresses
# Rbitcoin.plot(wallet_dt[,.SD][location_type=="blockchain",location := "*address*"],
# mask=T, export=T)
# ## End(Not run)
Run the code above in your browser using DataLab