Improving bag & function bag plots