![r plot rename x axis r plot rename x axis](https://i.stack.imgur.com/uQ7F7.png)
I have exported my data frame with dput(), and here is the simplified example of what I try to do.
![r plot rename x axis r plot rename x axis](https://kktg.net/sgr/wp-content/uploads/2014/02/fig-15-3-pch-values-1024x1024.png)
#R plot rename x axis how to
I cannot figure out how to change the x axis labels to show different values than the x axis values based on what the chart shows. On the x axis I only want to show the month and the day, not the year, because the month and day would be matching for both lines, but the year would be different.
![r plot rename x axis r plot rename x axis](https://simplyanalytics.com/wp-content/uploads/2020/05/scatter5.png)
The 2 lines represent cumulated counts of transactions per day during 2 consecutive years, so it would show how the current year performed compared to last year. I am trying to show 2 lines on a chart using the plotly library, and plot_ly() function in R.