Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在格子图内部绘制刻度线,而不是在外部。“tcl = 0.5”似乎适用于正常情节;但不适用于我的格点图。
我想在 Lattice 中复制的示例:
谢谢!
刻度长度由tck=参数控制,需要通过参数传递给更高级别的绘图函数scales=。设置tck=0禁止绘制刻度,而将其设置为负数会导致在绘图内绘制刻度:
tck=
scales=
tck=0
library(lattice) xyplot(1:10 ~ 1:10, scales = list(y = list(tck=0), x = list(tck=c(-1, 0))))