Description Usage Arguments Value Examples
createTextToTranslate: get the path to a svg file and return a csv file with all text elements (which are not pure numerics)
createTranslatedSVG: get a svg file and its text translations, output the translated svgs
1 2 3 4 | createTextToTranslate(input, ouputFileAppend = "_text.csv")
createTranslatedSVG(input = NULL, tradFile = NULL, inDirectory = "trad",
overwrite = TRUE)
|
input |
path to a svg file |
ouputFileAppend |
suffix to append at the end of the created SVG file, if NULL returns a vector of text elements |
tradFile |
path to the csv translations |
inDirectory |
path to a directory where all the output files are saved |
overwrite |
a boolean, output svg files to be overwritten? |
input |
path to the original svg file to translate |
the output file path or a character vector if ouputFileAppend is NULL
1 2 3 | require(XML)
test <- createTextToTranslate(system.file("extdata", "slopegraph_test.svg", package="swiMap"), ouputFileAppend = NULL)
test
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.