Phase portraits of an SIR epidemic model