如何阻止 matplot 循环使用不同的线条样式?现在我正在尝试以下两种方式的代码:

matplot(cbind(c(1,3,7,3), c(2,4,4,7)), type=c("l","l"), col=1)

matplot(cbind(c(1,3,7,3), c(2,4,4,7)), type="l", col=1)

即使我试图明确地告诉它只使用折线图,它也会循环使用所有类型的虚线。

最佳答案

只需指定行类型 lty :

matplot(cbind(c(1,3,7,3), c(2,4,4,7)), type="l", col=1, lty=1)

关于r - 如何防止matplot通过线条样式循环?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18114063/

10-12 17:32