The R package quantmod produces some slick and compelling time series of stocks.Make sure tyou've installed quantmod first of course. The coe below gets the Yahoo share price and then plots it in different ways.
library(quantmod)
## Loading required package: Defaults Loading required package: xts Loading
## required package: zoo
##
## Attaching package: 'zoo'
##
## The following object is masked from 'package:base':
##
## as.Date, as.Date.numeric
##
## Loading required package: TTR Version 0.4-0 included new data defaults.
## See ?getSymbols.
getSymbols("YHOO")
## As of 0.4-0, 'getSymbols' uses env=parent.frame() and auto.assign=TRUE by
## default.
##
## This behavior will be phased out in 0.5-0 when the call will default to
## use auto.assign=FALSE. getOption("getSymbols.env") and
## getOptions("getSymbols.auto.assign") are now checked for alternate
## defaults
##
## This message is shown once per session and may be disabled by setting
## options("getSymbols.warning4.0"=FALSE). See ?getSymbol for more details
## [1] "YHOO"
chartSeries(YHOO)
chartSeries(YHOO, subset = "last 4 months")
chartSeries(YHOO, subset = "2007::2008-01")
chartSeries(YHOO, theme = chartTheme("white"))
chartSeries(YHOO, TA = NULL) #no volume
chartSeries(YHOO, TA = c(addVo(), addBBands())) #add volume and Bollinger Bands from TTR