Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation for months and day of week #11

Open
MrcLuna opened this issue Feb 8, 2021 · 2 comments
Open

Translation for months and day of week #11

MrcLuna opened this issue Feb 8, 2021 · 2 comments

Comments

@MrcLuna
Copy link

MrcLuna commented Feb 8, 2021

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
Copy link
Collaborator

dasather commented Feb 9, 2021

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
Copy link
Author

MrcLuna commented Feb 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants