I Am legend movie was based on what novel?

The movie I Am Legend was based on a novel by the same name written by Richard Matheson in 1954. The book also inspired the movies The Last Man on Earth in 1960 and The Omega Man in 1971.