They are showing lavs in that figure (not vanities). You should have no problem putting the vanity up against the wall. Just make sure you have 4" between the wall and the closest edge of the lav.
I'm not a pro, but this is my understanding. I have seen many cases (including my own home) where the vanity is against the wall(s)