sudo apt-get install gnuplot-x11You'll have to enter your VM password. After this, gnuplot should be available. To make sure everything's good, try the command:
echo "plot sin(x) with lines" | gnuplot -pIf a window with a plot of the sine function pops up, you're good to go.