I can plot each series in a different colour in ggplot2 by doing something like this …
colours <- c('red', 'blue')
p <- ggplot(data=m, mapping=aes_string(x='Date', y='value'))
p <- p + geom_line(mapping=aes_string(group='variable', colour='variable'), size=0.8)
p <- p + scale_colour_manual(values=colours)
Is there something comparable I can do to set different line widths for each series? (Ie. I want to use a thick red line to plot the trend and a thin blue line to plot the seasonally adjusted series.)
I would just add a new numeric variable to your data frame
then add a size aesthetic to your plot command:
Notice that I’ve added
guide=FALSEto avoid the size legend being displayed.