lines(year,defense,col=”red”,lwd=2.5) # adds a line for defense expenditures lines(year,health,col=”blue”,lwd=2.5) # adds a line for health expenditures legend(2000,9.5, # places a legend at the appropriate
The legendry package offers a selection of what it calls ‘complete guides’. These complete guides can just be drop-in replacement of regular guides, which you can specify using ggplot2’sguides()function or using theguideargument in scales. In the example below, we’re using two custom va...