switchColorTheme | R Documentation |
Internal soundgen function
switchColorTheme(colorTheme)
colorTheme |
string like 'bw', 'seewave', or function name |
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.