我有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