Plot labels at ends of lines
问题 I have the following data ( temp.dat see end note for full data) Year State Capex 1 2003 VIC 5.356415 2 2004 VIC 5.765232 3 2005 VIC 5.247276 4 2006 VIC 5.579882 5 2007 VIC 5.142464 ... and I can produce the following chart: ggplot(temp.dat) + geom_line(aes(x = Year, y = Capex, group = State, colour = State)) Instead of the legend, I\'d like the labels to be coloured the same as the series to the right of the last data point for each series I\'ve noticed baptiste\'s comments in the answer in