I have a VERY basic plot in R, and I’d like to solve two issues. Here is the code which produces the plot:
plot(o,n,bty="n",pch=21,cex=1.5,bg="gray",xlab="y",ylab="x",lwd=2)
And, here’s the plot

There are two unwanted behaviors of this plot that I’m trying to fix. And I don’t know how to do either one (nor do I understand why R doesn’t do these things already…)
- The X and Y axes do not meet. There is a gap near the origin in this plot. I want to remove that. The axes should touch, just like any other graph.
- The data extends past the axis is both the X and Y direction. This clearly is unwanted. How can I fix this without having to manually make my own axis. Seems like there should be something more intuitive here.
bty="l".You may also want to use something like:
if you don’t like the default limits of your two axes.
In general, check out
?parfor guidance on both of these and many other options.