I am melting a data frame in order to plot it in ggplot2. However,
geom_line() is not giving me horizontal lines. Instead it is transforming my points to vertical lines. I will attach images and add the code to further illustrate:
Using only geom_point():
vecmmelt = melt(tail(tempdf,7), id.vars = "Date")
ggplot(vecmmelt, aes(x = Date, y = value, colour = variable, group=1)) +geom_point()+theme_bw()

Now I would expect to have the following when using geom_line():

What I am really getting by using the following code is the following picture:
vecmmelt = melt(tail(tempdf,7), id.vars = "Date")
ggplot(vecmmelt, aes(x = Date, y = value, colour = variable, group=1)) +geom_point()+geom_line()

I tried using geom_path() and it also is wrong