title: Getting Probability Density of Data
body: <p>I need to analyze some data about internet sessions for a DSL Line. I wanted to have a look at how the session durations are distributed. I figured a simple way to do this would be to begin by making a probability density plot of the duration of all the sessions. </p>
  
  <p>I have loaded the data in R and used the <code>density()</code> function. So, it was something like this</p>
  
  <pre><code>plot(density(data$duration), type = "l", col = "blue", main = "Density Plot of Duration",
       xlab = "duration(h)", ylab = "probability density")
  </code></pre>
  
  <p>I am new to R and this kind of analysis. This was what I found from going through google. I got a plot but I was left with some questions. Is this the right function to do what I am trying to do or is there something else?</p>
  
  <p>In the plot I found that the Y-axis scale was from 0...1.5. I don't get how it can be 1.5, shouldn't it be from 0...1?</p>
  
  <p>Also, I would like to get a smoother curve. Since, the data set is really large the lines are really jagged. It would be nicer to have them smoothed out when I am presenting this. How would I go about doing that?</p>