I know how to use $ with using in examples like
$
using
plot datafile using f($1):g($2)
to plot functions of column data. But
How about something like this? The loop statement could be different depending on the shell you are using. The one below is using bash.
plot '< for i in 1 2 3 4 ; do echo $i ; done' us ($1):($1+1)