Hi Community !
Few weeks ago I asked a question : Plotting timeseries data with missing values
I think I found the answer :
- I kept my normal datas with the blanks parts on my curve
- I applied a filter on my datas in order to have an other curve without blanks (below, I propose 2 filters, you need to choose the better for you) :
library(dplR)
x <- na.omit(PLR2[, 6])
#low-pass filter -- note freq is passed in
bSm <- pass.filt(x, W=0.05, type="low", method="Butterworth")
cSm <- pass.filt(x, W=0.05, type="low", method="ChebyshevI")
plot(x, type="l", col="green")
lines(bSm, col="red")
lines(cSm, col="blue")
So with these solutions I have my datas with blanks parts and an other curve with a filter curve without blank parts.
Have a nice day.
Yours sincerely