I am using using plot(), matplot() and ggplot(). I am guessing the answer will be the same for all of them.
I want to specify the thickness of the y-axis, the x-axis, and the other two lines that constitute the box around the plot, all separately. How can I achieve that?
Thanks in advance.
Note: I have already read this - Increasing the thickness of box lines in an R boxplot? , but I want to change the thickness of the individual axis lines separately.
You mean list this?
plot(sample(100))
axis(side = 1, lwd = 2)
axis(side = 2, lwd = 2)
See ?axis
and use it along with plot()
. Here is a nice tutorial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With