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

Use new R palette functions to get colours #184

Closed
wants to merge 2 commits into from

Conversation

Bisaloo
Copy link
Collaborator

@Bisaloo Bisaloo commented Jan 10, 2020

so, just a draft PR for now.

@@ -101,7 +101,7 @@ explorespec <- function(rspecdata, by = NULL,
arg$x <- wl

if (is.null(arg$col)) {
col_list <- viridisLite::viridis(max(table(by)))
col_list <- palette.colors(n = 8, palette = "Okabe-Ito", alpha = 1)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review note (so that I remember): there's no point setting n to more than 8 since the palette only has 8 colours. On the other hand, it doesn't hurt to set it as high as 8.

@Bisaloo
Copy link
Collaborator Author

Bisaloo commented Dec 20, 2020

Relevant information is stored in #196. No need to keep this PR open since it might not happen before a very long time. The diffs are still stored by GitHub if we want to make the switch at some point.

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

Successfully merging this pull request may close these issues.

1 participant