Removing only Y-Axis in a boxplot

I'm trying to remove only the Y-axis of a boxplot I am making using the graphics package in R. I am doing so in order to create my own custom Y-axis.
Setting axes=F is not helpful, as both axes get removed this way.
I was wondering if there is any solution to this. Using graphics or base-r is a must, can't use ggplot.

Probably there is. Please see the FAQ: What's a reproducible example (`reprex`) and how do I do one? Using a reprex, complete with representative data will attract quicker and more answers.

If base-r isn't a must have customizing the y-axis isn't hard in ggplot2

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.