Construct an histogram from time series and calculate bandwidth in R

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: Data Processing, Excel, Python, Research, Scientific Research

See more: histogram time series, virtual device, need coder python, graph library c, find r coder, c graph library, time series, r], r coder, python: get data, python coder needed, prob, in r, histogram, get a coder python, data plot, construct, bandwidth, true pdf file, python create pdf

About the Employer:
( 29 reviews ) Papara, French Polynesia

Project ID: #4506546

Awarded to:


Hi Taaroa, I use R in my daily quantitative analysis job and can help you efficiently. Best wishes, Mahmoud

$155 USD in 3 days
(0 Reviews)

7 freelancers are bidding on average $173 for this job


Hello, expert in R programming and data analysis, please send me your data sets and I will write an R code that will calculate the optimal binwidth, bandwidth and will plot the histogram. Thanks for considering More

$200 USD in 3 days
(12 Reviews)

Let me see if I can help you...

$250 USD in 0 days
(17 Reviews)


$233 USD in 10 days
(0 Reviews)

It is very easy to do it in R...I can help

$155 USD in 3 days
(0 Reviews)

Hi, I'm an expert R user, and I will gladly help you solve your problem

$55 USD in 1 day
(0 Reviews)

Kindly see your inbox.

$160 USD in 3 days
(0 Reviews)

Friendly quote for a budding R fiend. I offer to get the basic technique clear, and R codes indented. Check the portfolio for examples. Lets walk together to make learning more interesting.

$100 USD in 1 day
(0 Reviews)