Questions tagged «thickness»

3
ggplot中的控制点边框厚度
使用ggplot时,我可以设置shape为21-25来获得对内部(fill)和边框(col)颜色具有独立设置的形状,如下所示: df <- data.frame(id=runif(12), x=1:12, y=runif(12)) ggplot(df, aes(x=x, y=y)) + geom_point(aes(fill=id, size=id), colour="black", shape=21) 但是,我无法弄清楚如何控制形状边界的厚度,无论是将其设置为绝对值还是将其设置为美观的贴图。我注意到,如果我设置一个lwd值,它将覆盖size美学: ggplot(df, aes(x=x, y=y)) + geom_point(aes(fill=id, size=id), colour="black", shape=21, lwd=2) 如何控制边框的厚度?
76 r  ggplot2  border  point  thickness 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.