x 軸に対数スケールの図があります。はめ込み図を作成しようとしてもうまくいきませんが、スケールを線形に変更すると問題ないようです。これを回避する方法はありますか、それともggplotの制限ですか?
これは機能します:
p = qplot(1:10, 1:10)
g = ggplotGrob(qplot(1, 1))
p + annotation_custom(grob = g, xmin = 3, xmax = 6, ymin = 6, ymax = 10)
これはしません:
p = qplot(1:10, 1:10, log='x')
g = ggplotGrob(qplot(1, 1))
p + annotation_custom(grob = g, xmin = 3, xmax = 6, ymin = 6, ymax = 10)