plot_betavar function

Plots a beta variable