This is a simple question and all the answers I've found have been for more complicated datasets.
I'm trying to create a line graph with X as dates and Y as a count of each individual X variable (the autogenerated 'rownames').
Have tried:
ggplot(data=o2outcomes, aes(x=transfusion_date, y=..count.., group=1)) +
geom_line()
y x
1 01/01/99 01:01,
2 01/01/99 02:02,
3 01/02/99 01:01
The code will be run frequently with new dates added, so I can't just assign the number of y variables as static 1,2,3, it needs to be a count of the x axis.


