Hi all and apologies if this came up but I could not find 100% match answer to my question...
I have a csv file named zed made of 3 cols and 366 observation:
FTD_DAY, FTD_DATE, FTD
imported in R
.
FTD_DATE
looks like a date (dd/mm/yyy) but R
reads it as integer (typeof(zed$FTD_DATE)
displays integer
in GUID
).
I then geom_point the data using:
x <-ggplot(data=zed, aes(x=FTD_DATE,y=FTD))
and the x axis looks ugly since cannot fit 366 dates making it unreadable.
Questions I have:
- How can I order dates in x in ascending order?
- How can I break coordinates showing only (say) 7 coords maintaining all 366 observations?
- How can I align the dates in x axis vertically?
I tried scale_discrete()
, scale_log()
etc. but went nowhere or got somewhere in the wrong place... can someone please help and let me know what is the solution using ggplot
?