Bitcoin has garnered enough attention that it is available through Yahoo’s finance data under the symbol BTCUSD=X. The quantmod package is comprised of a set of packages and utilities geared towards time series analysis traditionally associated with stocks. You can load Bitcoin along with other Stock symbols using the loadSymbols function. In this example we will also load AMD, which makes graphics cards used by cryptocurrency miners.
If you have any issue downloading the data, make sure you update to the latest version of quantmod. If all goes well, you will have two objects in your global environment named AMD and BTCUSD=X.
 “AMD” “BTCUSD=X”
You can plot AMD by simply passing it to the plot function.
Bitcoin is slightly different simply because the symbol in use includes an equal sign. To ensure that R evaluates the code properly, the symbol must be surrounded in back ticks.
chartSeries(`BTCUSD=X`, subset=’last 4 weeks’)
This chart can then be modified to include technical analysis – for instance Bollinger Bands.
The capabilities of the quantmod package in an earlier post (see http://www.r-chart.com/2010/06/stock-analysis-using-r.html) where a listing of other functions that can be applied is included.
Inasmuch as cryptocurrencies behave like traditional equities, they lend themselves to similar types of analysis. The quantmod package is a great place to start when analyzing cryptocurrencies.