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

How about grDevices (e.g., palette(), palette.colors()) #60

Open
msberends opened this issue Nov 3, 2021 · 2 comments
Open

How about grDevices (e.g., palette(), palette.colors()) #60

msberends opened this issue Nov 3, 2021 · 2 comments

Comments

@msberends
Copy link

See ?grDevices::palette (below). These functions are 'base' R 4.* functions, but not part of the base package. Should the backports package also incorporate these?


Set or View the Graphics Palette

Description

View or manipulate the color palette which is used when col= has a numeric index and supporting functions.

Usage

palette(value)
palette.pals()
palette.colors(n = NULL, palette = "Okabe-Ito", alpha, recycle = FALSE)

...

@msberends msberends changed the title How about grDevices (e.g., palette.colors(), How about grDevices (e.g., palette(), palette.colors()) Nov 3, 2021
@mllg
Copy link
Member

mllg commented Nov 23, 2021

I'm not sure where to find the corresponding change in R. Can you point to an R NEWS entry or (even better) a svn revision?

@msberends
Copy link
Author

Not sure what you mean, but hopefully this can point you into a direction, from the official dev blog of r-project.org:

hcl.colors(): https://developer.r-project.org/Blog/public/2019/04/01/hcl-based-color-palettes-in-grdevices/

palette.colors(): https://developer.r-project.org/Blog/public/2019/11/21/a-new-palette-for-r/

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