translate_ggplot {fanyi} | R Documentation |
translate_ggplot
Description
Translate axis label of a ggplot
Usage
translate_ggplot(plot, axis = "xy", from = "en", to = "zh")
Arguments
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 |
Details
This function use the translate()
function to translate axis labels of a ggplot
Value
a translated ggplot object
Author(s)
Guangchuang Yu
[Package fanyi version 0.0.7 Index]