For a small number of variables, you can build the plot manually yourself:
ggplot(test_data, aes(date)) +
geom_line(aes(y = var0, colour = "var0")) +
geom_line(aes(y = var1, colour = "var1"))
More Related Contents:
- Order Bars in ggplot2 bar graph
- ggplot with 2 y axes on each side and different scales
- Add legend to ggplot2 line plot
- Order discrete x scale by frequency/value
- Add regression line equation and R^2 on graph
- Side-by-side plots with ggplot2
- How to use a variable to specify column name in ggplot
- How to save a plot as image on the disk?
- Plot two graphs in same plot in R
- Using ggplot2, can I insert a break in the axis?
- ggplot’s qplot does not execute on sourcing
- ggplot2 line chart gives “geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?”
- Plot multiple columns on the same graph in R [duplicate]
- Generate multiple graphics from within an R function
- How do you specifically order ggplot2 x axis instead of alphabetical order? [duplicate]
- How to get a vertical geom_vline to an x-axis of class date?
- How to plot a function curve in R
- using stat_function and facet_wrap together in ggplot2 in R
- How to order data by value within ggplot facets
- Force R to stop plotting abbreviated axis labels (scientific notation) – e.g. 1e+00
- Use stat_summary to annotate plot with number of observations
- How to combine 2 plots (ggplot) into one plot?
- Different legend-keys inside same legend in ggplot2
- Plot two graphs in a same plot
- ggplot geom_point() with colors based on specific, discrete values
- Can ggplot2 control point size and line size (lineweight) separately in one legend?
- Setting the last plot in the middle with facet_wrap
- Time series plot gets offset by 2 hours if scale_x_datetime is used
- What type of graph is this? And can it be created using ggplot2?
- ggplot2: Splitting facet/strip text into two lines