Learn R Programming

soundgen (version 2.5.1)

htmlPlots: HTML for clickable plots

Description

Internal soundgen function

Usage

htmlPlots(
  x,
  savePlots,
  changesAudio,
  suffix,
  extension = "png",
  width = "900px"
)

Arguments

width

default flex-basis, ie approximate default width of each image

myfolder

full path to target folder, without a '/' at the end

myfiles

a list of full names of files (with paths and extensions)

Details

Writes an html file for displaying clickable plots in a browser.

Examples

Run this code
if (FALSE) {
## Functions that modify audio
# relative paths
flatEnv('/home/allgoodguys/Downloads/temp', savePlots = '')
flatEnv('/home/allgoodguys/Downloads/temp',
  savePlots = '/home/allgoodguys/Downloads/temp/compr',
  saveAudio = '/home/allgoodguys/Downloads/temp/compr')

# absolute paths
flatEnv('/home/allgoodguys/Downloads/temp', savePlots = '',
  saveAudio = '/home/allgoodguys/Downloads/temp/compr')
flatEnv('/home/allgoodguys/Downloads/temp',
  savePlots = '~/Downloads/temp/plots_compr')


## Functions that only analyze audio
getRMS('/home/allgoodguys/Downloads/temp', savePlots = '')
getRMS('/home/allgoodguys/Downloads/temp',
  savePlots = '~/Downloads/temp/plots_rms')
}

Run the code above in your browser using DataLab