visualizing time series density (without data) in R - r

I have time series of 4 years. What I need to do, is to display the density of the time series by only visualising the dates for that data exists. The data doesn't matter. The picture shows a sketch. Anybody knows how to this in R? Thanks a lot.
sketch

Related

Is there a way in R to plot a survival curve by year?

good morning. I am thinking is it possible to extract data and draw several survival curves by years in the R? For example, is it possible to plot a survival curve which represents each year from a single spreadsheet file?
Many thanks in advance for helping me with this.
Yes, take a look at this link: https://cran.r-project.org/web/packages/survminer/vignettes/Informative_Survival_Plots.html
Basically, you'll want to create a regression equation where year is one of the independent variables, then when you plot you will get multiple series, one for each year.

dygraphs doesn't show the line for more than 10,000 datapoints

I am trying to plot a graph using dygraph function for a dataset with more than 100,000 datapoints. As soon as I try it the graph appears empty. I tried to shorten the dataset and it turns out that dygraph shows graph for dataset up to 10,000 entries only. Here is a sample with 9,999 datapoints
dygraph(ts(1:9999))
up to 9999 datapoints
as soon as I change to 10,000 it doesn't show anything
dygraph(ts(1:10000))
10000 datapoints
After some research I came to conclusion that this is a bug. Nevertheless I found a solution to this. If you convert your data to time series using timeSeries function, it starts working.
For example:
y = timeSeries(1:1000000, 1:1000000)
dygraph(y)

Can I create a target zone on my time series plots in R?

I've created a time series plot in R using the ggplot package, but I wanted to see if I could further customize it by creating target zones. I originally started with an Excel plot that allows me to move a gray box to different areas of the plot as an easier way to point out a range of temperatures. However, I wanted to see if I could replicate this in R. Here's a screenshot of my Excel plot to better explain my goal: Time Series on Excel. On the time series plot, you can see a gray box that you can drag around and change the size of to better define a range of temperatures (in this case, it covers from 15-25C). Is this possible to do on top of my time series plot in R? I'm only starting to code in R so it's been quite hard for me to navigate, and I appreciate any help I could get. Thanks!

Spatial temporal kriging

I'm working on rainfall data. I have grid of rainfall points of 1 square kilometer with time step of 10 minutes. I want interpolate those point at every time step. also I want to check the temporal correlation of my rainfall points. The program I'm using is R. But I'm stuck I cant find my way forward...! Here is a link of my single rainfall data
https://drive.google.com/file/d/0B430nIYqp_1OLXZia2htbGRGWTQ/edit?usp=sharing
The CRAN taskview for spatial temporal analysis suggests packages to use.
http://cran.r-project.org/web/views/SpatioTemporal.html
I see that you have tagged gstat, so the gstat way might be of interest to you.
http://cran.r-project.org/web/packages/gstat/vignettes/st.pdf
Does this help?

plot trade entry signals on a price graph of tick data

I have tick time series data and want to plot a price graph and overlay on it the trade entry and exit points so I can see visually how my trading algorithm is performing.
Does R graphing have this overlay capabilities, or does one need to use gnuplot. Are there any examples anyone can refer me to....thanks!
Yes, you can easily do this in R. See ?points.

Resources