I am writing a wrapper function to build multiple data frames:
gf <- function(dataframe){
ggplot(dataframe, aes(x=Date, y=Close)) +
geom_point() +
ggtitle(nameofdataframe))
and I cannot understand the last part how to get the name of the data frame as a variable used in ggtitle (). Please, help.
source
share