biwavelet

Wavelets plot: changing x-, y- axis, and color plot

自闭症网瘾萝莉.ら 提交于 2020-01-17 13:18:06
问题 I have a code that I am working on for hourly dataset and want to display a proper wavelet plot but I am having trouble adjusting it to my liking. I want to change the x-, y- axis and put up a color bar. I have successfully changed the x-axis, however, that is only when color bar is not activated. If it is, then I cannot change the x-axis. In addition, I haven't found a successful way to change the y-axis to have more values in between then what is automatically generated. Thank you in

Wavelets plot: changing x-, y- axis, and color plot

ε祈祈猫儿з 提交于 2020-01-17 13:16:04
问题 I have a code that I am working on for hourly dataset and want to display a proper wavelet plot but I am having trouble adjusting it to my liking. I want to change the x-, y- axis and put up a color bar. I have successfully changed the x-axis, however, that is only when color bar is not activated. If it is, then I cannot change the x-axis. In addition, I haven't found a successful way to change the y-axis to have more values in between then what is automatically generated. Thank you in

Wavelets plot: changing x-, y- axis, and color plot

寵の児 提交于 2020-01-17 13:15:11
问题 I have a code that I am working on for hourly dataset and want to display a proper wavelet plot but I am having trouble adjusting it to my liking. I want to change the x-, y- axis and put up a color bar. I have successfully changed the x-axis, however, that is only when color bar is not activated. If it is, then I cannot change the x-axis. In addition, I haven't found a successful way to change the y-axis to have more values in between then what is automatically generated. Thank you in

biwavelet package: “axis” is not working

孤街醉人 提交于 2019-12-08 05:42:21
问题 I am using biwavelet package to conduct wavelet coherence analysis. When I want to set my own x ticklabel, I find axis is not working. The following gives a reproducible example. Thanks. require(biwavelet) t1 <- cbind(1:100, rnorm(100)) t2 <- cbind(1:100, rnorm(100)) wtc.t1t2 <- wtc(t1,t2,nrands = 10) plot(wtc.t1t2, plot.cb = TRUE, plot.phase = TRUE,xaxt='n') axis(1,at = seq(10,100,10),labels = seq(1,10,1)) 回答1: The thing that was breaking your plot was plot.cb = TRUE . In the source code for

Combine base and ggplot graphics in R figure window

半腔热情 提交于 2019-11-26 00:33:12
问题 I would like to generate a figure that has a combination of base and ggplot graphics. The following code shows my figure using the base plotting functions of R: t <- c(1:(24*14)) P <- 24 A <- 10 y <- A*sin(2*pi*t/P)+20 par(mfrow=c(2,2)) plot(y,type = \"l\",xlab = \"Time (hours)\",ylab = \"Amplitude\",main = \"Time series\") acf(y,main = \"Autocorrelation\",xlab = \"Lag (hours)\", ylab = \"ACF\") spectrum(y,method = \"ar\",main = \"Spectral density function\", xlab = \"Frequency (cycles per