Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6646339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:24:16+00:00 2026-05-26T00:24:16+00:00

Hi I am using R to analyze data from output of my simulation. I

  • 0

Hi I am using R to analyze data from output of my simulation. I am using hist function to generate pdf’s the exact command i give is

hist(data_delay$delay,freq=F)

In my understanding the values the y axis of the chart should be less then 1, all the counts on Y-Axis should add up to 1. But unfortunately I am not getting random range at Y-Axis, sometimes values in 1000’s.

I am attaching my sample input file. In this the Y-Axis values are in the range of 0 to 100.

Thank you for all the help you can provide.

My data is as follows
http://www.mediafire.com/?twyoseg8bai0dr7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:24:17+00:00Added an answer on May 26, 2026 at 12:24 am

    According to the hist documentation, when freq=FALSE, “the histogram has a total area of one”. It does not say that the height of every bar should be less than one. The histogram created with your command and data does have a total area of 1.

    > data_delay <- read.csv("PATH_TO_DATA_FILE")
    > h <- hist(data_delay$delay, plot=F)
    > h
    $breaks
     [1] 0.000 0.005 0.010 0.015 0.020 0.025 0.030 0.035 0.040 0.045 0.050 0.055
    [13] 0.060 0.065 0.070
    
    [SNIP]
    
    $density
     [1] 112.47892074  13.36706015   3.91231029   5.98088814  10.35413153
     [6]  11.21978640  11.80438449   6.55424396  14.14277684   2.63069140
    [11]   5.53119730   1.31534570   0.69702080   0.01124227
    
    [SNIP]
    

    The breaks are equally spaced 0.005 apart, so we can see the total area in the histogram by doing the following.

    > sum(h$density * 0.005)
    [1] 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Stata to combine and analyze data for all of our agencies
I have been playing around with using graphs to analyze big data. Its been
I am using the Spring JdbcUtils.extractDatabaseMetaData() method to analyze the database. The function calls
I am using the FFT function in Matlab in an attempt to analyze the
I have attached data at the bottom of this post. I have output from
I'd like to analyze a continuous stream of data (accessed over HTTP) using a
I'm using a FFT on audio data to output an analyzer, like you'd see
I'm using FFTW to analyze elevation data, but I started out just by looking
I'm trying to analyze data from the University of Minnesota IPUMS dataset for the
I am using Google App Engine mapreduce to analyze some data. I am generating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.