如何增加R箱形图中箱形线的粗细? [英] How to Increase the thickness of the box lines in an R boxplot?
问题描述
如何使用基本R绘图或boxplot函数增加勾勒出boxplot中"box"部分轮廓的线的粗细?也就是说,如何加粗定义分位数的框线.
How can I increase the thickness of the lines that outline "box" part of a boxplot using either the base R plot or boxplot function? That is, how do I thicken the lines of the box that defines the quantiles.
对于这样的情节:
boxplot(rnorm(100,50,10), horizontal = TRUE, notch = TRUE)
我猜我需要包含一个
boxplot(rnorm(100,50,10), horizontal = TRUE, notch = TRUE, pars = ...)
我对使用 pars =
的猜测来自对 boxplot
的文档的一瞥,这表明 pars =
可以调用"(可能很多)更多的图形参数,例如boxwex或outpch;这些参数将传递给bxp(如果plot为true)..."
My guess regarding the use of pars =
comes from a first glance at the documentation for boxplot
which indicates that pars =
can call "a list of (potentially many) more graphical parameters, e.g., boxwex or outpch; these are passed to bxp (if plot is true)..."
推荐答案
请参见?bxp
中讨论的 boxlwd
参数(链接到?boxplot
).例如
See the boxlwd
parameter as discussed in ?bxp
(linked to from ?boxplot
). E.g.
boxplot(rnorm(100,50,10), horizontal = TRUE, notch = TRUE, boxlwd = 4)
这篇关于如何增加R箱形图中箱形线的粗细?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!