gr_set_locale {grwat} | R Documentation |
Set the language that is used for plotting
Description
Run this function once at the beginning of the session. All plots will be labeled using the selected language.
Usage
gr_set_locale(locale = "EN")
Arguments
locale |
Character string locale. Currently only English ( |
Details
Note to Linux users: the desired locale may not be installed on the system. A list of available locales can be obtained in bash terminal:
locale -a
Russian locale is ru_RU.UTF-8
, and Ukrainian locale is uk_UA.UTF-8
. If absent in the list, then install the desired locales by:
sudo locale-gen ru_RU.UTF-8
sudo locale-gen uk_UA.UTF-8
sudo update-locale
Then restart R session, and localization should work as expected.
Value
No return value, called for side effects
Examples
library(grwat)
data(spas) # example Spas-Zagorye data is included with grwat package
# separate
sep = gr_separate(spas, params = gr_get_params(reg = 'center'))
# Default is English
gr_set_locale('EN')
gr_plot_sep(sep, 1978)