Not much to be done like the others have mentioned in your case. I would probably ask myself these questions:
- Was I too aggressive?
- Did I give enough room (or not take up too much of the road)?
- Is there a better route to take with less (or slower) traffic?
I have had some situations where the answer to some were "yes." So that means that I need to adjust as needed (attitude, route, etc). I think there's often room for improvement. But for some drivers, that may be more up to them than you.
Edit: I recall experiencing something close to your situation. A car came within inches when I was on Riverside Drive in Manhattan. I needed to move in a bit since there was a sizable puddle I was trying to avoid. The change I made was to not take that route as much (and to avoid it after a heavy rain). Another cyclecommuter I talked with said that he also avoids that road since he had a few close calls. So I'm not the only one with those experiences there.