My plot is displaying weird numbers instead of dates. When converting them I find today's date. The issue is that I'm studying past dates. I would like to display on the chart below, the dates corresponding to the values.
I already converted dates using:
dates <- lubridate::mdy(rv_data_USDC_DAILY$Date)
This is my code for the plot:
par(mfrow = c(1, 2))
plot.ts(x=df_peg$date, y=df_peg$BUSDPEG, type="l", main = "", col="#1F4690", ylab="USD")
abline(h=0)
mtext("BUSD Deviations from Peg")
hist(df_peg$BUSDPEG, xlim = c(-0.01,0.01), main="", col="#D61C4E")
Sample of Data:
date BUSDPEG USDCPEG DAIPEG GEMINIPEG HUSDPEG PAXPEG STASISPEG
1 2022-06-29 -2.383111e-03 0.00010 -0.0044920717 2.048424e-03 -1.543622e-04 1.639760e-02 -0.04452180
2 2022-06-28 -1.414367e-03 0.00005 -0.0020128418 1.531139e-03 -3.612265e-04 1.710005e-02 -0.03907985
Thanks