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

Lunar linecol gradient #13

Merged
merged 2 commits into from
Dec 19, 2021
Merged

Lunar linecol gradient #13

merged 2 commits into from
Dec 19, 2021

Conversation

mschilli87
Copy link

This PR adds new parameters that allow coloring of the moon phase outlines by a gradient indicating the moon's progression:

# devtools::install_github("mschilli87/calendR@lunar-linecol-gradient")
library(calendR)

# Default remains unchanged.
calendR(year = 2021, month = 12, lunar = TRUE)

default

# Default gradient colors phases smoothly in a circular fashion:
calendR(year = 2021, month = 12, lunar = TRUE, lunar.line.gradient = TRUE)

gradient

# Parameters allow complex custom coloring:
calendR(year = 2021, month = 12, lunar = TRUE, lunar.line.gradient = TRUE,
        low.col = "yellow", lunar.col = "orange",
        lunar.linecol.new = "black", lunar.linecol.waxing = "purple",
        lunar.linecol.full = "blue", lunar.linecol.waning = "cyan",
        lunar.linecol.old = "green")

custom

Note that roxygen2::roxigenise picked up some unrelated documentation changes I commited these separately for clarity.

Please let me know if you prefer any changes to my suggestion.

These changes were auto-generated by `roxygen2::roxygenise()`.
This commit adds new parameters that allow coloring of the moon phase
outlines by a gradient indicating the moon's progression.
The default behaviour remains unchanged.
@R-CoderDotCom R-CoderDotCom merged commit 34dafbe into R-CoderDotCom:master Dec 19, 2021
@mschilli87 mschilli87 deleted the lunar-linecol-gradient branch December 19, 2021 18:55
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

Successfully merging this pull request may close these issues.

None yet

2 participants