For visualizations of time series R offers basic functionalities with the plot() and lines() functions.
R
plot()
lines()
Legends can be added to a plot with the legend() function.
legend()