Collecting Axes using plot_layout() in Patchwork: Aligning and Plotting Sediment Core Images and Downhole Logs
Using a combination of ggplot2, magick, and patchwork, I’ve gotten pretty close to getting a programmatic sediment core downhole log plot with a scaled photograph aligned along the left y-axis. See the current result below along with data and code. The remaining issue I have is removing the depth y axis between the image and the data plot. Patchwork seems to be able to do this using: plot_layout(axes = "collect_y")
, however, I am unable to get it working correctly.