How to get lines of "type=b" in a legend
legend, r
Solution
just add `pt.bg = 'white'`. This whitens the background color of the point.
plot(x, x, type="b")
legend("bottomright", c("dinges"), cex=1.2, pch = 21,pt.bg = 'white', lty = 1, bty="n")
Problem
Is there a way to get `type = "b"` as the line type in my legend? I want my legend look the same as the points in the plot: ``` x <- c(1:3) plot(x, x, type="b") legend("bottomright", c("dinges"), cex=1.2, pch=c(21), lty=1, bty="n") ```