Plot a chirp-matched EHA map, with or without the surrogate significance
Source:R/plot_chirp_eha.R
plot_chirp_eha.RdTwo styles of "enhanced spectrum" for a analyse_chirp_eha result: "significance" shows the
line-to-continuum ratio divided by the 95th percentile of the warped surrogates (Power_sig, from
chirp_eha_significance; above 1, i.e. above 0 on the log scale, is significant), "outline"
shows the de-chirped map itself (Power_norm) with the significant cells outlined, and "plain" the
de-chirped map alone.
Usage
plot_chirp_eha(
ce,
style = c("outline", "significance", "plain"),
track = NULL,
show = NULL,
level = 0.95,
palette = "viridis",
main = NULL,
xlab = "Depth",
ylab = "Period",
scale = "auto"
)Arguments
- ce
Chirp-matched EHA result to plot: the list returned by
analyse_chirp_eha; forstyle = "outline"or"significance"it must first be passed throughchirp_eha_significance(which addsPower_sigandPower_pval). Required, no default.- style
Plot style (character), one of:
"outline": the de-chirped map (Power_norm) with the cells significant atleveloutlined in white;"significance": log10 of the ratio of the observed map to the 95th percentile of the warped surrogates (Power_sig), with a diverging blue-red scale centred on 0 (above 0 is significant);"plain": the de-chirped map alone (no significance needed).
Default="outline"(the first element ofc("outline", "significance", "plain")).- track
Sedimentation-rate track used to draw the expected periods of the astronomical cycles in
show: awr_trackobject or atrack_astro_autoresult (itstrackelement is used), i.e. a list or data frame withdepthandsedrate(depth units per kyr). Nothing is drawn whentrackorshowisNULL.Default=NULL.- show
Astronomical periods in kyr (numeric vector, e.g.
c(405, 100, 40, 20)) drawn as dotted lines at period =showtimestrack$sedratealong the record; only used withtrack.Default=NULL.- level
Confidence level of the significance outline of
style = "outline"(numeric, between 0 and 1): cells with surrogate p-valuePower_pval <= 1 - levelare outlined.Default=0.95.- palette
Name of a
hcl.colorspalette for the colour scale, a character string, for example"viridis","Plasma","Inferno","YlOrRd","Spectral","Blue-Red","Zissou 1"; rungrDevices::hcl.pals()to list all 115 names. Low values get the first colour of the palette. Names of the viridis family ("viridis","magma","inferno","plasma","cividis","rocket","mako","turbo") give the colours of the viridis package, as in the wavelet plots.Default="viridis".- main
Title of the plot (character);
NULLgives a title that describes the chosenstyle.Default=NULL.- xlab
Label of the depth axis (character).
Default="Depth".- ylab
Label of the period axis (character).
Default="Period".- scale
Spacing of the colour breaks of the colour scale, as in all image plots of the package (character):
"quantile"(histogram-equalised),"log","sqrt","linear"or"auto"(logarithmic for mostly empty maps or values spanning more than three orders of magnitude, quantiles otherwise); seeplot_wavelet. Not used forstyle = "significance", which has a fixed diverging scale.Default="auto".