我有R中的下面的代碼是從here改性,其繪出一個交叉表: #load ggplot2
library(ggplot2)
# Set up the vectors
xaxis <- c("A", "B")
yaxis <- c("A","B")
# Create the data frame
df <- expand.grid(xaxis, yaxis)
d
您能否告訴我,有沒有其他方法可以以比這更好的方式繪製重複數據?這個圖中的重複不清楚。 library(ggplot2)
p <- ggplot(output, aes(output$Longitudes, output$Latitudes))
p + geom_text(aes(x = jitter(output$Longitudes), y =
jitter(output$Latitude