Miriam Engelberg, a graphic author diagnosed with breast cancer who found improbable humor in her own terminal illness, died Wednesday at home in San Francisco. She was 48.

Ms. Engelberg's "Cancer Made Me a Shallower Person: A Memoir in Comics" (HarperCollins) came out last spring, with Ms. Engelberg adding her own humorous spin on the deadly illness.

Before she was diagnosed in 2001, she worked for a San Francisco nonprofit called Compass Point doing computer work, and published a comic book, "Planet 501c3," about the nonprofit world. She had no formal drawing training, and her style was basic; the book is in black and white.

As she finished her book, she thought she had a happy ending: a successful round of radiation and chemotherapy.

But then she got the news that the cancer was spreading. She decided to add a few panels about it.