translate_ggplot | R Documentation |
Translate axis label of a ggplot
translate_ggplot(plot, axis = "xy", from = "en", to = "zh")
plot |
a ggplot object to be translated |
axis |
one of 'x', 'y' or 'xy' to select axis labels to be translated |
from |
source language, i.e., the language to be translated |
to |
target language, i.e., the language to be translated into |
This function use the translate()
function to translate axis labels of a ggplot
a translated ggplot object
Guangchuang Yu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.