I'm trying to combine two time series into a plot sharing the same values of the X axis. When I use the code below I got these goals. However, I'd like to display just one X axis for both the series and I also would like to remove the Y axis in the right side of the plot. My dataset is two financial variables from Yahoo Finance. I use the 'quantmod' package to extract the data and the default function 'plot' to visualize the series in the way that I want to.
PS: I got some results using the package 'ggplot2', but they don't fit well to my aim.
install.packages('quantmod')
library(quantmod)
## Get the data
# OVX
getSymbols(Symbols = "^OVX", from = "2007-05-10",
to = "2020-01-01", src = "yahoo")
# USO
getSymbols(Symbols = "USO", from = "2007-05-10",
to = "2020-01-01", src = "yahoo")
## PLOTS
par(mfcol=2:1, xaxt = "s")
plot(USO[, "USO.Adjusted"], main="USO", type = "l", lwd = 0.7, grid.col = NA, axes = F)
plot(OVX[, "OVX.Adjusted"], main="OVX", type = "l", lwd = 0.2, grid.col = NA)
I'm not allowed to insert images here yet, then there is a link below to see my plot.


