Hello,
I am new to R, and by new I mean I've only started using it last Thursday..
I am trying to create a line graph showing data for separate housing units but I cant seem to figure it out. I used the following to try to plot my data
On the second try, I changed ï..DateResult in the sting to sampledate, which was the new mdy variable I had created for this data set and it gave me the following. Now instead of plotting by day its just plotting months, which is not what I need for the graph
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one:
To plot dates in the x-axis you need to use a proper date variable, not character strings, and to customize the "date breaks" of your plot you can use the scale_x_date() function. Check this example: