As Min said, there is no "atheist viewpoint" on this. There are individual viewpoints.
From my perspective, were I in such a situation, my advance directive says to pull the plug and let me die.
From my perspective, were I in such a situation, my advance directive says to pull the plug and let me die.