Giter Site home page Giter Site logo

prettycols's Introduction

R-CMD-check codecov CRAN_Status_Badge

PrettyCols

{PrettyCols} is an R package containing aesthetically pleasing colour palettes.

The structure of the package is based on code from the {PNWColors}, {wesanderson}, and {MetBrewer} packages.

Installation

{PrettyCols} is available on CRAN. Install using:

install.packages("PrettyCols")

or install the development version from GitHub:

remotes::install_github("nrennie/PrettyCols")

See nrennie.rbind.io/PrettyCols for full documentation.

If you have a suggestion of an additional feature, or find a bug, please file an issue on the GitHub repository.

Using {PrettyCols} with other software.

Contributor guidelines

If you'd like to contribute to {PrettyCols}, I'd welcome your help. If you're making a PR, please follow the guidelines below, to make the collaboration easier:

  • You have updated the NEWS and version number in DESCRIPTION.
  • You have checked that R CMD check passes with no ERRORs or WARNINGs. If there is a NOTE - please outline what it is in the PR.
  • You have checked that lintr::lint_package() passes.
  • You have checked the list of packages in Imports is still in alphabetical order to enable better tracking of dependencies as the package grows.
  • You have not used the base R |> pipe (we're not quite ready to specify R 4.1 or higher as a dependency yet!).
  • If this is a feature request PR (not a bug fix) please make sure it relates to an issue that has not been assigned to someone else (and tag the issue in the PR description).

If these checks fail, and there is no response from the PR author for 1 month, the PR will be automatically closed.

prettycols's People

Contributors

nrennie avatar jcken95 avatar toledo60 avatar olivroy avatar

Stargazers

Lokesh Krishna avatar Zepeng (Phoenix) Mu avatar Robert Rose avatar Hemed Lungo avatar Srikanth K S avatar Markus J. Ankenbrand avatar Nicholas Vietto avatar Benjamin Michael Marshall avatar Alexis Merot avatar Maxime Kuntz avatar Insang Song avatar Andrew Moles avatar  avatar Ilze avatar  avatar Jimmy Briggs avatar  avatar Tim Bender avatar Luísa Gisele Böck avatar Hua Gao avatar Vinícius Machado avatar Radosław Jaźwiec avatar Sandalots avatar Indrajeet Patil avatar Johannes Breuer avatar Brian Tarran avatar Tim Bender avatar Joël Girès avatar Ondřej Mottl avatar  avatar  avatar Pablo Barajas avatar  avatar Lisa Levinson avatar Yigit Koray Babal avatar Yanxiang Wang avatar  avatar Arthur Azevedo avatar Zixuan Wang avatar Cath Blatter avatar Guillaume Jamet avatar Andrei-WongE avatar Simon Grundt Straubinger avatar vonSkopnik avatar Patrick R. Wright avatar Sergio Olmos avatar TJ Mahr avatar David Jankoski avatar B. Ogan Mancarcı avatar Richard Iannone avatar

Watchers

 avatar  avatar

prettycols's Issues

name is name of scale

Small issue, in PrettyCols::scale_* the name argument is the name of the palette, but name is also in continuous_ or discrete_scale the name of the scale, causing an issue. Easy solution rename name to palette ?

Can't update legend title using name argument

Since name is used to identify palette in scale_*_pretty_*() it can't be used to change the legend title.

Solution: use something like guides(fill = guide_legend(title = "New Legend Title")) in the meantime. e.g.

ggplot(mtcars, 
       aes(mpg, cyl, colour = disp)) +
  geom_point(size = 3) +
  scale_colour_pretty_c(name = "Greens", limits = c(0, 500), 
                        breaks = c(0, 250, 500), 
                        labels = c("low", "medium", "high")) +
  guides(colour = guide_colorbar(title = "New Legend Title"))

Long-term solutions options: use palette instead of name as argument. Alternatively, add a new argument specifically for the title.

Contribution For PrettyCols to appear and Function in QGIS

Hello Nicola ,

So i kinda continued and crafted an xml file basing on prettycols library which can be added into qgis as shown below gif

I was hoping to show you so as i can be able to contribute it further to qgis style with credit of course so as people inn qgis could access it

Prettycols Project

Release PrettyCols 1.1.0

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Check if any deprecation processes should be advanced, as described in Gradual deprecation
  • Polish NEWS
  • usethis::use_github_links()
  • urlchecker::url_check()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('minor')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • usethis::use_github_release()
  • usethis::use_dev_version(push = TRUE)
  • Finish & publish blog post

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.