Construct an histogram from time series and calculate bandwidth in R

Avg Bid (USD)
Project Budget (USD)
$30 - $250

Project Description:
I have some time series which I want to construct the histogram, find the optimal binwidth and find the optimal bandwidth h. My main goal is to get the bandwidth. I need the code in R.

This is one model I found but as I'm very new in R, I don't really understand what's is going on.

> library(MASS)
> par(mfrow=c(1,2)) # Make device region 1 by 2
> attach(geyser)
> hist(waiting,prob=TRUE)
> lines(density(waiting)) # Add density to Histogram
> plot(density(waiting)) # Create density by itself

This code give one histogram and another graph with the bandwidth value. See pdf file attached.

So, I need a coder with experience in R and histograms. Don't consider skills needed since these are just to enter 5 mandatory virtual skills.

Thank you.


Skills required:
Data Processing, Excel, Python, Research, Scientific Research
Additional Files:
Hire Taaroa1945
Project posted by:
Taaroa1945 French Polynesia
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

Hire renardpaul
$ 200
in 3 days
$ 250
in 0 days
Hire scarletsalman
$ 160
in 3 days
$ 100
in 1 days
Hire amibhalo26
$ 155
in 3 days
Hire HamadaQuant
$ 155
in 3 days
$ 233
in 10 days
Hire nvthuyne
$ 55
in 1 days