晶格(R)中密度对数图处的小刻度
我需要用R的格子包创建一个密度图。x轴有一个对数刻度。最简单的例子:晶格(R)中密度对数图处的小刻度,r,lattice,R,Lattice,我需要用R的格子包创建一个密度图。x轴有一个对数刻度。最简单的例子: densityplot( ~ mpg, data=mtcars, scales=list(x=list(log=TRUE))) 可以在主刻度之间加上小刻度吗?在xyplot中,可以使用xscale.components=xscale.components.log10ticks,但这不适用于DensityPlot或直方图 我发现这需要 library("lattice") library("latticeExtra") 现在
densityplot( ~ mpg, data=mtcars, scales=list(x=list(log=TRUE)))
可以在主刻度之间加上小刻度吗?在xyplot中,可以使用xscale.components=xscale.components.log10ticks,但这不适用于DensityPlot或直方图 我发现这需要
library("lattice")
library("latticeExtra")
现在xscale.components=xscale.components.log10ticks适用于我认为的所有晶格图。我不知道需要额外的格子