I find this to be a very delicate balance, and it of course are heavily dependent on the tasks at hand. On one side you want peace and quiet, in order to concentrate, on the other hand you want close communication with your colleagues.
I think 37signals from lot of good answers to these concerns. I highly recommend reading from 37signals, Remote.