Supervised and unsupervised mapping of binary variables: a proximity perspective