I'm getting started with a QGIS map showing the quality of roads in my town. I have various data which create an index of 1-5. 

How do I link this index data to road data in a map, showing the bad roads (5) in red, and good roads (1) in green?