## quantmod package: stock performance graph install.packages("quantmod") # "quantmod" package is installed library("quantmod") # "quantmod" package is loaded (quotes " " not really needed) getSymbols("MSFT") # Microsoft data is obtained barChart(MSFT) # Microsoft data is presented as a barchart ## For details, see: https://cran.r-project.org/package=quantmod getSymbols("AAPL") # Apple data is obtained barChart(AAPL) # Apple data is presented as a barchart