disable the y axis in plot r
# Sample data
x <- 1:10
y <- x^2
# Plot without y-axis
plot(x, y, yaxt = 'n', type = 'l', col = 'blue', lwd = 2)
# Add y-axis with no labels
axis(2, at = NA)
# Sample data
x <- 1:10
y <- x^2
# Plot without y-axis
plot(x, y, yaxt = 'n', type = 'l', col = 'blue', lwd = 2)
# Add y-axis with no labels
axis(2, at = NA)