如何在图中指定轴的厚度? (在R中) [英] How do I specify axis thickness in a plot? (in R)

查看:118
本文介绍了如何在图中指定轴的厚度? (在R中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用plot(),matplot()和ggplot()。我猜测所有人的答案都是一样的。



我想指定y轴,x轴和另外两个的厚度分别构成围绕情节的盒子的线。我怎么能做到这一点?



预先致谢。



注意:我已经阅读过 - ,但是我想单独改变各个轴线的厚度。 您的意思是列出这个?



$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $' (side = 2,lwd = 2)


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)

这篇关于如何在图中指定轴的厚度? (在R中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆