Description Usage Arguments Value Examples
Creates a list of translation strings that can be passed to function
manipulateWidget
to translate some UI elements.
1 2 3 4 5 6 7 8 | mwTranslations(
settings = "Settings",
chart = "Chart",
compare = "Compare",
compareVars = "Variables to compare",
ncol = "Nb Columns",
ncharts = "Nb Charts"
)
|
settings |
Title of the settings panel. |
chart |
Title of the chart panel. |
compare |
Label of the checkbox that activate the comparison mode. |
compareVars |
Label of the input containing the list of variables to compare. |
ncol |
Label of the input that sets the number of columns. |
ncharts |
Label of the input that sets the number of charts. |
Named list of translation strings.
1 2 3 4 5 6 7 8 9 10 11 12 | translations <- mwTranslations(
settings = "Parametres", chart = "Graphique", compare = "Comparaison",
compareVars = "Variable de comparaison", ncharts = "Nb graph.", ncol = "Nb col."
)
if (require(dygraphs)) {
mydata <- data.frame(year = 2000+1:100, value = rnorm(100))
manipulateWidget(dygraph(mydata[range[1]:range[2] - 2000, ], main = title),
range = mwSlider(2001, 2100, c(2001, 2100)),
title = mwText("Fictive time series"),
.translations = translations)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.