I know how to plot multiple functions on one graph,
> var1 <- function(x) x^2
> var2 <- function(x) x*(log(x)^2)
> var3 <- function(x) x*log(x)
> plot(var1,var2,var3, type="l",col="blue",xlim=c(0,40),
+ xlab="X-axis",ylab="Y-axis", add=TRUE)
How to plot these together with points when x = 2, 4, 8, 16, and 32 on each functions?

