Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Color Scheme Helpers

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

christopherkenny/palette

Repository files navigation

CRAN statusR-CMD-checkLifecycle: stablepalette status badgeCodecov test coverage

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.

Installation

You can install the development version of palette fromGitHub with:

# install.packages('pak')pak::pak('christopherkenny/palette')

Usingpalette

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

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp