The tail of a deer is like a flag. And every time the deer waved the flag, it gave out different signals. It can be a warning signal to other deer in the herd, an order to leave or to attack.