The easiest solution (ggplot2 v3.5.x) is currently:
i <- 'x' ggplot(data=t, aes(w, {{i}})) + geom_line()