Create color time-frequency plots from eha results

Share:

Description

Create color time-frequency plots from eha results.

Usage

1
2
3
plotEha(spec,xmin=NULL,xmax=NULL,ymin=NULL,ymax=NULL,h=6,w=4,ydir=1,pl=0,norm=NULL,
        xaxis=c("Frequency (cycles/ka)"),yaxis=c("Time (ka)"),ncolors=100,colorscale=F,
        filetype=0,output=T,verbose=T)

Arguments

spec

Time-frequency spectral results to evaluate. Must have the following format: column 1=frequency; remaining columns (2 to n)=power, amplitude or probability; titles for columns 2 to n must be the location (depth or height). Note that this format is ouput by function eha.

xmin

Minimum frequency for PLOTTING.

xmax

Maximum frequency for PLOTTING.

ymin

Minimum depth/height for PLOTTING.

ymax

Maximum depth/height for PLOTTING.

h

Height of plot in inches.

w

Width of plot in inches.

ydir

Direction for y-axis in plots (depth or height). -1 = values increase downwards (slower plotting!), 1 = values increase upwards.

pl

An option for the color plots (0=do nothing; 1=plot log of value [useful for plotting power], 2=normalize to maximum value [useful for plotting amplitude], 3=use normalization provided in norm.

norm

Optional amplitude normalization divisor, consisting of a single column dataframe. This option is provided in case you'd like to normalize a set of EHA results using the same scheme (e.g., before and after removal of spectral lines).

xaxis

Label for x-axis.

yaxis

Label for y-axis.

ncolors

Number of colors to use in plot.

colorscale

Include a color scale in the plot? (T or F)

filetype

Generate .pdf, .jpeg or .png file? (0=no; 1=pdf; 2=jpeg; 3=png)

output

If amplitude is normalized (pl = 2), output normalization used? (T or F)

verbose

Verbose output? (T or F)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.