开发者

How to delete the "Given" in a coplot using R

Is there anybody who knows how to delete the "Given" signatures in a coplot? I开发者_如何学JAVA know how to use coplot(...,show.given=FALSE),but this deletes more than just the "Given". I hope you guys understand what I'm talking about, because my English isn't that good!

Bye


Here is a reproducible example from ?coplot:

## Tonga Trench Earthquakes
coplot(lat ~ long | depth, data = quakes)

The question therefore is how to stop R writing the "Given :" in the label in the shingle part of the plot, or for that matter change the entire label.

If we look at the help for ?coplot, we see that the arguments for the x- and y-axis labels (xlab and ylab respectively) take two values, and it is the default behaviour to prepend "Given : " to the second element in each label for the conditioning variable.

The solution therefore is to supply your own labels:

coplot(lat ~ long | depth, data = quakes, xlab = c("Longitude", "Depth"),
       ylab = "Latitude")

which gives:

How to delete the "Given" in a coplot using R

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜