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(1,1) legend("bottomleft", c("A","B","C"), lwd=3, bty="n",lty=c(1,3,4))
是否可以使图例中的线条更长(请仅以 R 为基础)?当线条如此短时,似乎有点难以立即看到图例中的 lty=3 和 lty=4 的区别。增加 lwd 也无济于事。
非常感谢
您可以设置seg.len参数。
seg.len
plot(1,1) legend("bottomleft", c("A","B","C"), lwd=3, bty="n",lty=c(1,3,4), seg.len=5 )