View source: R/FUNCTION-plotEha_v4.R

Create color time-frequency plots from eha results.

1 2 |

`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=linear scale; 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). |

`palette` |
What color palette would you like to use? (1) rainbow, (2) grayscale, (3) blue, (4) red, (5) blue-white-red (if values are negative and positive, white is centered on zero) |

`centerZero` |
Center color scale on zero (use an equal number of postive and negative color divisions)? (T or F) |

`ncolors` |
Number of colors steps to use in palette. |

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

`xlab` |
Label for x-axis. Default = "Frequency" |

`ylab` |
Label for y-axis. Default = "Location" |

`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) |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.