Answers for "ggplot multiple lines in one plot"

R
0

ggplot2 multiple lines geom_line

ggplot(economics, aes(x=date)) + 
  geom_line(aes(y = psavert), color = "darkred") + 
  geom_line(aes(y = uempmed), color="steelblue", linetype="twodash")
Posted by: Guest on October-24-2020
0

ggplot2 multiple lines geom_line

# Visualization
ggplot(df, aes(x = date, y = value)) + 
  geom_line(aes(color = variable, linetype = variable)) + 
  scale_color_manual(values = c("darkred", "steelblue"))
Posted by: Guest on October-24-2020

Code answers related to "ggplot multiple lines in one plot"

Browse Popular Code Answers by Language