NAN GOLDIN is a photographer whose work is a record of her life. If this were the 19th century, she might be called a diarist. Her formal compositions have depicted her friends in candid moments -- in bars and clubs, funky bedrooms and bathrooms, hanging out, having sex, doing drugs, looking warily at each other, themselves or the camera. Often these characters were estranged from society, but not necessarily from each other, and especially not from the photographer. Anything and anyone Ms. Goldin shot were intimate to her. In exhibitions and in books, she has included some self-portraits, a few of which presented devastating views of her own self-destructiveness. But, she suggests, no portrait of her could be complete without the people she loves and what's around her. ''The Ballad of Sexual Dependency,'' the work in which she first documented her friends and herself, her scene, forged a genre, with photography as influential as any in the last 20 years.