0
我已經通過註釋(表達式,bquote等)中ggplot上標的所有頂端帖子,並沒有任何訣竅。感謝你的幫助。ggplot註解 - 粘貼上標
df <- data.frame(x = rnorm(10), y = rnorm(10))
var1<-"SR"
var2<-10
mylabel<-paste(var1," at ", var2, "m^2 scale")
ggplot(df, aes(x = x, y = y)) + geom_point() +
annotate("text", x = mean(df$x), y = mean(df$y),label = "test", parse=T)
輝煌!上標總是讓我感動 - 似乎總是有一個例外。感謝有趣的解決方案 - 讓我回到我的C++時代。 – treetopdewdrop