Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在情节周围放置平滑的边框。代码
plot(0:10, 0:10, type="n", xlab="X", ylab="Y") box("figure", col="blue")
而不是简单的蓝线,我怎样才能用圆角放置平滑的灰线?
非常感谢。
library(grid) plot(0:10, 0:10, type="n", xlab="X", ylab="Y") grid.roundrect(gp=gpar(fill="#00000000", col="grey"))
如果您发现边框被切断,您可以随时减小圆角矩形的大小:
plot(0:10, 0:10, xlab="X", ylab="Y") grid.roundrect(height=0.99, width=0.99, gp=gpar(fill="#00000000", col="grey"))