Using aes_string makes it easy to construct functions to take parameters to plot:
p <- ggplot(mtcars, aes_string(x=\"mpg\", y=\"wt\", group=interaction(\
According to this answer this should work (without quoting the colnames):
p <- ggplot(mtcars, aes_string(x=x, y=y, group=paste0("interaction(", paste0(interact, collapse = ", "), ")"))) + geom_point()