1

使用時に短い目盛りを省略することは可能annotation_logticksですか? つまり、1 ティックではなく、10 と 5 のティックのみが必要です。

設定してみshort=unit(0,"cm")ました。ただし、短い目盛りはまだ点として表示されます。

それが不可能な場合、annotation_logticksこれを達成する他の方法はありますか?

例:

library(ggplot2)
library(grid)
library(scales)
tikz("test.pdf",standAlone=TRUE,12,3)
ggplot(data=data, aes(x=step,y=opsPerSecond,fill=hidx)) +   
        geom_bar(position="dodge", stat="identity") +
        scale_y_continuous(
                trans = log10_trans(),
                breaks = trans_breaks("log10", function(x) 10^x),
                labels = trans_format("log10", math_format(10^.x))
        ) +
        annotation_logticks(sides="lr",short=unit(0,"cm"))

問題の写真は次のとおりです。 ここに画像の説明を入力

short=unit(0,"cm")ご覧のとおり、 !を使用しても、軸上のドットはまだ表示されています。

PS: tikz エンジンを出力として使用します。

4

1 に答える 1