- Notifications
You must be signed in to change notification settings - Fork0
Color Scheme Helpers
License
Unknown, MIT licenses found
Licenses found
christopherkenny/palette
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
palette provides a lightweight infrastructure for working with colorpalettes in R. The primary goal is to place colors directly next totheir character representations. To do this, we create a palette classbased onvctrs. We then providemethods for this class, includingprint(),plot(), andpillar. To keep it lightweight and usablein other packages, the only direct dependencies arevctrs,cli, andpillar.
You can install the development version of palette fromGitHub with:
# install.packages('pak')pak::pak('christopherkenny/palette')
palette primarily provides apalettevctrs class. Using includeddata,roygbiv, a length 7 vector of hex codes, we can create apalette.
library(palette)#>#> Attaching package: 'palette'#> The following object is masked from 'package:grDevices':#>#> palettepalette(roygbiv)
There is also aplot() method for visualizing the colors:
plot(palette(roygbiv))For use withintibbles, there is apillar_shaft method:
tibble::tibble(color= palette(roygbiv))
About
Color Scheme Helpers
Resources
License
Unknown, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.



