theme_minimal()
白い背景を持つ ggplot0.9.3 にある優れたものを使用しています。プロットの右上隅にあるカスタムの場所にプロットのタイトルを配置したいと思います。次の例では、 と の値はわかっていx
ますが、テキストを右上に確実に配置するためにと の値y
を渡す方法があるかどうか疑問に思っています。理想的には、テキストは右揃えになります。xmax
ymax
#example plot
p <- qplot(mpg, wt, data = mtcars, colour = cyl)
p + annotate("text", x = 30, y = 5, label = "Custom Title")
#what I would like
p + annotate("text", y= ymax, x =xmax_or_RightJustified)