只需删除breaks
参数,该参数是多余的/ binwidth
与origin
参数冲突:
# Load data Temp <- read.csv("http://pastebin.com/raw.php?i=mpFpjqJt", header = TRUE, stringsAsFactors=FALSE, sep = ";") # Load package library(ggplot2) # Plot histrogram using ggplo2 ggplot(data=Temp, aes(Temp$Score)) + geom_histogram(col="grey", aes(fill=..count..), binwidth = 1, origin = -0.5) + scale_fill_gradient("Count", low = "green", high = "red") + labs(title="Title") + labs(x="X-Title", y="Y-Title") + xlim(c(3,9))