Thanks, Tom, that solved the issue! I didn't know that I have to substitute x_ by i for plotting it...
Is it the very same function? Did you try straightforward definition and plotting like this?
f[x_] := x^2; g[x_] := f[x]*2; Plot[g[f[i]], {i, 1, 100}]