我有一個奇怪的問題與輸出窗口在RGUI(在Win XP下)。我應該看到類似下面的一個陰謀...... alt text http://img402.imageshack.us/img402/7483/ss20100121153931.png ...當我運行此腳本: library(ggplot2)
x <- rnorm(100,0,1)
y <- rnorm(100,0,1)
z <- da
我正在使用qplot來繪製一個函數,並且我想將圖例放置在圖中。我用過 opts(legend.position = c(0.7,0.7))
將圖例移動到我想要的位置。 但是,在圖例周圍有一個白色邊框,並顯示在灰色背景上。 例如: library(ggplot2)
x = c(1:20)
y = c(1:20)
p <- qplot(x,y, color = "blue")
p <-