DavidLung R help 中看到一个问题,正好我也不会,转载如下: Dear all R users, Is there any effective way to change the body color of any plot? I am aware of the function par(bg="black"), but the problem with this is, it change the color of entire graphics window. But I want to see that only plot area will have color for example RED and rest of the area should have BLACK color. Hope anyone can help me to solve this. 我理解的body就是plot area. [attachment=211050,673]
yihui 一种不太优雅的办法: plot(1)<br /> usr=par('usr')<br /> rect(usr[1],usr[3],usr[2],usr[4], col='black') </p>