I want to try ggplot with some time series data (stocks) and would like to pass x and y axis values to the ggplot function.
Here's my sample code:
require(quantmod)
getSymbols("AAPL")
AAPL.DF<-as.data.frame(AAPL)
Interesting is here that we have only 1729x6 observations, even though the data column is there as well (so it should be actually 7 columns...). If I want to see all column names (in order to reference it for ggplot) with colnames(AAPL.DF) I only get the column names starting with AAPL.Open but the data column isn't mentioned. Why is that? And how can I reference it then for ggplot?!