How to do ggplot data.frame columns by column index? This is needed when column names are the same or when you have 10000 columns. For example, how to plot histogram of 2nd column below?
dt <- data.table(cars); names(dt) <- c("A", "A")
ggplot(dt) + geom_histogram(aes(A))