switchColorTheme {soundgen} | R Documentation |
Switch color theme
Description
Internal soundgen function
Usage
switchColorTheme(colorTheme)
Arguments
colorTheme |
string like 'bw', 'seewave', or function name |
Examples
soundgen:::switchColorTheme('bw')
soundgen:::switchColorTheme('seewave')
cols_matlab = soundgen:::switchColorTheme('matlab') (100)
plot(1:100, seq(0, 1, length.out = 100), type = 'n')
for (i in 1:100) {
rect(i - 1, 0, i, 1, col = cols_matlab[i], border = NA)
}
[Package soundgen version 2.7.2 Index]