I am writing a wrapper function for plotting several data frames:
gf <- function(dataframe){ ggplot(dataframe, aes(x=Date, y=Close)) + geom_point() +
This will do it:
ggtitle(deparse(substitute(dataframe)))
deparse() converts the variable name to a character string, substitute() lets you use it in the plot.