View source: R/plot_correlogram.R
plot_correlogram | R Documentation |
The function uses the output of ncc_correlate()
to show an
image plot of a noise cross correlation analysis.
plot_correlogram(data, agg = c(1, 1), legend = TRUE, keep_par = FALSE, ...)
data |
|
agg |
|
legend |
|
keep_par |
|
... |
Additional arguments passed to the plot function. |
Graphic output of a correlogram.
Michael Dietze
ncc_correlate
## Not run:
## calculate correlogram
cc <- ncc_correlate(start = "2017-04-09 00:30:00",
stop = "2017-04-09 01:30:00",
ID = c("RUEG1", "RUEG2"),
component = c("Z", "Z"),
dir = paste0(system.file("extdata",
package = "eseis"), "/"),
window = 600,
overlap = 0,
lag = 20,
f = c(0.05, 0.1),
sd = 1)
## explicit plot function call with adjusted resolution
plot_correlogram(data = cc, agg = c(2, 5))
## define plot colour scale
cls <- colorRampPalette(colors = c("brown", "white", "green"))
## simple function call with user-defined colour scale
plot(cc, col = cls(100))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.