hist (x, breaks = "Sturges", freq = NULL, probability =!freq, include.lowest = true, right = true, density = N ULL, angle = $, col = null, border = NULL, main = paste ("Histogram of", XName), Xlim = range (breaks), Ylim = NUL L, Xlab = XName, Ylab, axes = true, Plot = true, labels = FALSE, nclass = NULL, warn.unused = True, ...)
For example:
> hist (filename column name, Breaks=20,col = "color", border = "Color", lty = number, LWD = number, xlim=c (100,450), main= "title", xlab= "horizontal axis", ylab= "ordinate", xaxt= "n") #xaxt = "n" is the axis #lty off the x-axis , the type and width of the LWD line
#labels = TRUE, indicating the number of labels on each column header, the Freq=false ordinate can show the probability, not the number
>axis= Axis (1,at=seq (100,450,50)) #添加上坐标轴: 1 for the horizontal axis, 2 for the middle ordinate, 100,450 for the start and end of coordinates, and 50 for the interval
R language Histogram