I made this plot in R:
plot(OHR_VIX_P$OHR),col=red,ylab=OHR)
Then, I assign it to a variable:
AR_VIX <- plot(OHR_VIX_P$OHR),col=red,ylab=OHR)
And I want to savein .png format to a file in my R proyect, the file name is 00_Data I tried with the code:
png(file=here("00_Data/AR_VIX.png"),
width=600, height=350)
dev.off()
It was saved on my file but it it not a .png image, actually it is nothing.
What can I do?