问题 If you take the code below, how can you change the filling of the third diamond, so it will be half-black, half-white? The solution should apply with any colors. data <- c(1,2,3) plot(data, pch=c(23,18,23), cex=c(2.5,3,2.5)) 回答1: The pch characters are actual font symbols, so you will be limited to what is available in your fonts. Another alternative is to use the primitive plotting commands to make your own "symbols". This is very flexible, although there can be issues with resizing, etc.,