AtherEnergy / ggTimeSeries

Time series visualisation
Other
251 stars 39 forks source link

Translation for months and day of week #11

Open MrcLuna opened 3 years ago

MrcLuna commented 3 years ago

How can I use local names for months and days of week on calendar heatmaps? I would like to have them in portuguese. Thanks.

dasather commented 3 years ago

ggplot_calendar_heatmap uses month.abb to get the month names. As a work around, you could change that vector to the names of the months in Portugese.

MrcLuna commented 3 years ago

ggplot_calendar_heatmap uses month.abb to get the month names. As a work around, you could change that vector to the names of the months in Portugese.

Thanks, but it didn't work. I changed the vector, but the plot still show the names in English. Other packages have some way to access local names like scales and lubridate. Ploting a horizon plot with dates in x, shows local names for months. It would be nice to have some way to inform the vector names to be used in calendar heatmap. Thanks.