增加类型“h"的宽度R图 [英] Increasing the width of type "h" R plot

查看:39
本文介绍了增加类型“h"的宽度R图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我运行这个简单的代码:

If I run this simple code:

x <- c(1:10)
y <- c(1:10)
plot(x,y,type="h")

结果包含非常细的直方图线.

the result contains very thin histogram lines.

有没有办法让这些线条变粗(除了使用 hist() 函数本身)?它们不一定必须看起来像条形,只要厚一点即可.

Is there a way to make these lines thicker (other than using the hist() function itself)? They do not necessarily have to look like bars, just be a little thicker.

推荐答案

试试这个:

plot(x,y,type="h", lwd = 4)

这篇关于增加类型“h"的宽度R图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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