[R] question on waveletcomp plot image
Sudheer Joseph
sjo.india at gmail.com
Fri Apr 3 16:18:24 CEST 2015
Dear R experts,
I have used waveletcomp package of R and was
trying to get the dates formatted as month & year but get below error while
trying it with the example provided in
http://www.hs-stat.com/projects/WaveletComp/WaveletComp_guided_tour.pdf
Kindly help me with the dateformat so that I can get %Y-%m as xaxis label
data(FXtrade.transactions)
my.data.a = FXtrade.transactions[FXtrade.transactions$active == T, ]
my.w.a = analyze.wavelet(
+ my.data.a, "transactions",
+ loess.span = 0.0, # no detrending required
+ dt = 1/(12*24),
+ # one day has 12*24 5-minute time slots
+ dj = 1/250,
+ # resolution along period axis
+ lowerPeriod = 1/8, # lowest period of interest: 3 hours
+ make.pval = T,
+ # draws white lines indicating significance
+ n.sim = 10)
wt.image(my.w.a, n.levels = 250, periodlab = "periods (days)",
+ legend.params = list(lab = "wavelet power levels"),
+ show.date = T, date.format = "%Y %m", timelab = "")
Error in plot.window(...) : need finite 'xlim' values
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -In
with best regards
Sudheer
**********************************************************************************
Dr. Sudheer Joseph
Scientist,
INCOIS, MoES, Govt. of India.
"OCEAN VALLEY" , Pragathi Nagar (BO), Nizampet SO, Telangana, India. PIN-
500 090.
Tel:+91-9440832534(Mobile) Tel:+91-40-23886047(O),Fax:+91-40-23892910(O)
E-mail: sjo.India at gmail.com; sjo at incois.gov.in.
-------------------* --------------------
"The ultimate measure of a man is not where he stands in moments of
comfort and convenience, but where he stands at times of challenge and
controversy."
Martin Luther King, Jr.
***********************************************************************************
[[alternative HTML version deleted]]
More information about the R-help
mailing list