plot_tree function

Plot a tree diagram of frequencies and probabilities.