x axis in last plot shows intervals correctly, had to change factor variable to numeric