use*_*124 4 statistics graphics r
有谁知道如何删除coplot中的"给定"签名?我知道如何使用coplot(...,show.given = FALSE),但这会删除的不仅仅是"Given".我希望你们明白我在说什么,因为我的英语不太好!
再见
以下是一个可重现的示例?coplot:
## Tonga Trench Earthquakes
coplot(lat ~ long | depth, data = quakes)
Run Code Online (Sandbox Code Playgroud)
因此,问题是如何阻止R在图中的木瓦部分的标签中写下"给定:",或者就此而言改变整个标签.
如果我们查看帮助?coplot,我们会看到x轴和y轴标签的参数(xlab和ylab分别)采用两个值,并且它是默认行为"Given : ",在条件变量的每个标签中添加到第二个元素.
因此,解决方案是提供您自己的标签:
coplot(lat ~ long | depth, data = quakes, xlab = c("Longitude", "Depth"),
ylab = "Latitude")
Run Code Online (Sandbox Code Playgroud)
这使:
