R language Histogram

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.