diff --git a/404.html b/404.html index 281ca7b..84c0fa4 100644 --- a/404.html +++ b/404.html @@ -31,7 +31,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/CODE_OF_CONDUCT.html b/CODE_OF_CONDUCT.html index e5168df..cde4e0d 100644 --- a/CODE_OF_CONDUCT.html +++ b/CODE_OF_CONDUCT.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/CONTRIBUTING.html b/CONTRIBUTING.html index cb30467..5c37ba1 100644 --- a/CONTRIBUTING.html +++ b/CONTRIBUTING.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/LICENSE.html b/LICENSE.html index 9a5c6e6..9de97c8 100644 --- a/LICENSE.html +++ b/LICENSE.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/articles/ggsci-faq.html b/articles/ggsci-faq.html index e4aa6b4..45d8ebd 100644 --- a/articles/ggsci-faq.html +++ b/articles/ggsci-faq.html @@ -33,7 +33,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/articles/ggsci.html b/articles/ggsci.html index 5de0493..c48004b 100644 --- a/articles/ggsci.html +++ b/articles/ggsci.html @@ -33,7 +33,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/articles/index.html b/articles/index.html index 8875edb..43ec2e0 100644 --- a/articles/index.html +++ b/articles/index.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/authors.html b/authors.html index 1b7781f..43af2bb 100644 --- a/authors.html +++ b/authors.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 @@ -79,13 +79,13 @@ Citation Xiao N (2024). ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'. -R package version 3.0.2, https://github.com/nanxstats/ggsci, https://nanx.me/ggsci/. +R package version 3.0.3, https://github.com/nanxstats/ggsci, https://nanx.me/ggsci/. @Manual{, title = {ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'}, author = {Nan Xiao}, year = {2024}, - note = {R package version 3.0.2, https://github.com/nanxstats/ggsci}, + note = {R package version 3.0.3, https://github.com/nanxstats/ggsci}, url = {https://nanx.me/ggsci/}, } diff --git a/index.html b/index.html index 84da28d..d8c81a0 100644 --- a/index.html +++ b/index.html @@ -37,7 +37,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/news/index.html b/news/index.html index 208faa1..9376ecc 100644 --- a/news/index.html +++ b/news/index.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 @@ -54,7 +54,14 @@ -ggsci 3.0.2 +ggsci 3.0.3 + +Improvements +Detect ggplot2 version at runtime to determine if the argument scale_name is needed for all discrete_scale() calls. This ensures ggsci always works regardless of the ggplot2 version installed (thanks, @flyingicedragon, #29). + + + +ggsci 3.0.2CRAN release: 2024-03-18 Improvements Remove scale_name from all discrete_scale() calls because the argument has been deprecated in ggplot2 3.5.0 (thanks, @DanChaltiel, #25). diff --git a/pkgdown.yml b/pkgdown.yml index b5567a8..79154ce 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,7 +4,7 @@ pkgdown_sha: ~ articles: ggsci-faq: ggsci-faq.html ggsci: ggsci.html -last_built: 2024-03-18T00:56Z +last_built: 2024-03-25T04:14Z urls: reference: https://nanx.me/ggsci/reference article: https://nanx.me/ggsci/articles diff --git a/reference/ggsci-package.html b/reference/ggsci-package.html index 105e2e9..3a66596 100644 --- a/reference/ggsci-package.html +++ b/reference/ggsci-package.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/index.html b/reference/index.html index 2414703..e8fa82b 100644 --- a/reference/index.html +++ b/reference/index.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_aaas.html b/reference/pal_aaas.html index b4c4588..5653daa 100644 --- a/reference/pal_aaas.html +++ b/reference/pal_aaas.html @@ -14,7 +14,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_cosmic.html b/reference/pal_cosmic.html index beafe40..67944b9 100644 --- a/reference/pal_cosmic.html +++ b/reference/pal_cosmic.html @@ -14,7 +14,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_d3.html b/reference/pal_d3.html index 12894bb..737df72 100644 --- a/reference/pal_d3.html +++ b/reference/pal_d3.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_flatui.html b/reference/pal_flatui.html index d6eae62..5d99615 100644 --- a/reference/pal_flatui.html +++ b/reference/pal_flatui.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_frontiers.html b/reference/pal_frontiers.html index 3ce8023..410e1fb 100644 --- a/reference/pal_frontiers.html +++ b/reference/pal_frontiers.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_futurama.html b/reference/pal_futurama.html index 32138f9..0c61cb6 100644 --- a/reference/pal_futurama.html +++ b/reference/pal_futurama.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_gsea.html b/reference/pal_gsea.html index 0f2e4d8..68153ff 100644 --- a/reference/pal_gsea.html +++ b/reference/pal_gsea.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_igv.html b/reference/pal_igv.html index 9abb9a2..8cace26 100644 --- a/reference/pal_igv.html +++ b/reference/pal_igv.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_jama.html b/reference/pal_jama.html index 883307f..073229d 100644 --- a/reference/pal_jama.html +++ b/reference/pal_jama.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_jco.html b/reference/pal_jco.html index cabd1e4..3dd8140 100644 --- a/reference/pal_jco.html +++ b/reference/pal_jco.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_lancet.html b/reference/pal_lancet.html index b9400a6..67ccfb2 100644 --- a/reference/pal_lancet.html +++ b/reference/pal_lancet.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_locuszoom.html b/reference/pal_locuszoom.html index a13e1ac..903317a 100644 --- a/reference/pal_locuszoom.html +++ b/reference/pal_locuszoom.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_material.html b/reference/pal_material.html index 92674f8..2c85b17 100644 --- a/reference/pal_material.html +++ b/reference/pal_material.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_nejm.html b/reference/pal_nejm.html index 7a2c683..54ad25f 100644 --- a/reference/pal_nejm.html +++ b/reference/pal_nejm.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_npg.html b/reference/pal_npg.html index 0f31a84..bb015d0 100644 --- a/reference/pal_npg.html +++ b/reference/pal_npg.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_rickandmorty.html b/reference/pal_rickandmorty.html index 229f2d5..b767fc3 100644 --- a/reference/pal_rickandmorty.html +++ b/reference/pal_rickandmorty.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_simpsons.html b/reference/pal_simpsons.html index 29fda4d..f20b1ae 100644 --- a/reference/pal_simpsons.html +++ b/reference/pal_simpsons.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_startrek.html b/reference/pal_startrek.html index f602ebf..6248ceb 100644 --- a/reference/pal_startrek.html +++ b/reference/pal_startrek.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_tron.html b/reference/pal_tron.html index 3089fc2..7ab6d4f 100644 --- a/reference/pal_tron.html +++ b/reference/pal_tron.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_uchicago.html b/reference/pal_uchicago.html index 53c7c15..f24e5eb 100644 --- a/reference/pal_uchicago.html +++ b/reference/pal_uchicago.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/pal_ucscgb.html b/reference/pal_ucscgb.html index 5e3ebab..9ea53e8 100644 --- a/reference/pal_ucscgb.html +++ b/reference/pal_ucscgb.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/rgb_gsea.html b/reference/rgb_gsea.html index 1f9e7ff..c66ca37 100644 --- a/reference/rgb_gsea.html +++ b/reference/rgb_gsea.html @@ -12,7 +12,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/rgb_material.html b/reference/rgb_material.html index 2c1606b..bf60975 100644 --- a/reference/rgb_material.html +++ b/reference/rgb_material.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_aaas.html b/reference/scale_aaas.html index b5248c5..7482e3d 100644 --- a/reference/scale_aaas.html +++ b/reference/scale_aaas.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_cosmic.html b/reference/scale_cosmic.html index 41385a8..04ecb87 100644 --- a/reference/scale_cosmic.html +++ b/reference/scale_cosmic.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_d3.html b/reference/scale_d3.html index 3f9e772..3ecdfa4 100644 --- a/reference/scale_d3.html +++ b/reference/scale_d3.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_flatui.html b/reference/scale_flatui.html index ed28bf1..5ca02a5 100644 --- a/reference/scale_flatui.html +++ b/reference/scale_flatui.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_frontiers.html b/reference/scale_frontiers.html index fb2bac8..367c765 100644 --- a/reference/scale_frontiers.html +++ b/reference/scale_frontiers.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_futurama.html b/reference/scale_futurama.html index f9edf70..79b8d61 100644 --- a/reference/scale_futurama.html +++ b/reference/scale_futurama.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_gsea.html b/reference/scale_gsea.html index 6e3a656..11b65ec 100644 --- a/reference/scale_gsea.html +++ b/reference/scale_gsea.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_igv.html b/reference/scale_igv.html index 0899226..452d9d7 100644 --- a/reference/scale_igv.html +++ b/reference/scale_igv.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_jama.html b/reference/scale_jama.html index b05caec..7112470 100644 --- a/reference/scale_jama.html +++ b/reference/scale_jama.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_jco.html b/reference/scale_jco.html index f0454d7..bbf85fa 100644 --- a/reference/scale_jco.html +++ b/reference/scale_jco.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_lancet.html b/reference/scale_lancet.html index bab64d1..dc40743 100644 --- a/reference/scale_lancet.html +++ b/reference/scale_lancet.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_locuszoom.html b/reference/scale_locuszoom.html index efb5a89..3b8c6fb 100644 --- a/reference/scale_locuszoom.html +++ b/reference/scale_locuszoom.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_material.html b/reference/scale_material.html index 0954aea..f70ce07 100644 --- a/reference/scale_material.html +++ b/reference/scale_material.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_nejm.html b/reference/scale_nejm.html index 468b787..3311942 100644 --- a/reference/scale_nejm.html +++ b/reference/scale_nejm.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_npg.html b/reference/scale_npg.html index 6655a98..0fb64d0 100644 --- a/reference/scale_npg.html +++ b/reference/scale_npg.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_rickandmorty.html b/reference/scale_rickandmorty.html index e843a5d..ecf2475 100644 --- a/reference/scale_rickandmorty.html +++ b/reference/scale_rickandmorty.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_simpsons.html b/reference/scale_simpsons.html index 0c70fc8..98bb90f 100644 --- a/reference/scale_simpsons.html +++ b/reference/scale_simpsons.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_startrek.html b/reference/scale_startrek.html index 7ab3a67..ffb20eb 100644 --- a/reference/scale_startrek.html +++ b/reference/scale_startrek.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_tron.html b/reference/scale_tron.html index 85b7a4c..5d42c41 100644 --- a/reference/scale_tron.html +++ b/reference/scale_tron.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_uchicago.html b/reference/scale_uchicago.html index ac18b1e..7b762b5 100644 --- a/reference/scale_uchicago.html +++ b/reference/scale_uchicago.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/reference/scale_ucscgb.html b/reference/scale_ucscgb.html index 3dbc407..4cdc681 100644 --- a/reference/scale_ucscgb.html +++ b/reference/scale_ucscgb.html @@ -10,7 +10,7 @@ ggsci - 3.0.2 + 3.0.3 diff --git a/search.json b/search.json index 363a216..342e919 100644 --- a/search.json +++ b/search.json @@ -1 +1 @@ -[{"path":[]},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement @nanx.. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired [Mozilla’s code conduct enforcement ladder][https://github.com/mozilla/inclusion]. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://nanx.me/ggsci/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing to ggsci","title":"Contributing to ggsci","text":"👍🎉 First , thanks taking time contribute! 🎉👍 contribute project : Filing bug report feature request issue. Suggesting change via pull request.","code":""},{"path":"https://nanx.me/ggsci/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contributing to ggsci","text":"file issue possible bug, please try include: Relevant package versions Necessary code data reproduce issue","code":""},{"path":"https://nanx.me/ggsci/CONTRIBUTING.html","id":"pull-requests","dir":"","previous_headings":"","what":"Pull Requests","title":"Contributing to ggsci","text":"suggest change via pull requests, please: Fork repository GitHub account. Clone forked repository local machine, make changes. Commit push changes GitHub. Create pull request.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://nanx.me/ggsci/articles/ggsci-faq.html","id":"what-if-my-data-has-more-categories-than-the-number-of-colors-offered","dir":"Articles","previous_headings":"","what":"What if my data has more categories than the number of colors offered?","title":"Frequently Asked Questions about ggsci","text":"Although recommended encode many categories different colors, practice, one can still create “adaptive” color palette based existing discrete color palettes ggsci. See blog post detailed guide creating adaptive ggplot2 color scales color interpolation.","code":""},{"path":"https://nanx.me/ggsci/articles/ggsci-faq.html","id":"use-a-color-scale-consistently-for-multiple-plots-in-a-document","dir":"Articles","previous_headings":"","what":"Use a color scale consistently for multiple plots in a document","title":"Frequently Asked Questions about ggsci","text":"apply color scale plots document avoid repetition, simple solution setting two global options ggplot2.discrete.colour ggplot2.discrete.fill. example:","code":"library(\"ggplot2\") p <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl), fill = factor(cyl))) + geom_point() + geom_smooth(method = \"lm\") + theme_bw() p # Set global options options( ggplot2.discrete.colour = ggsci::scale_colour_d3, ggplot2.discrete.fill = ggsci::scale_fill_d3 ) p # Restore original options after use options( ggplot2.discrete.colour = NULL, ggplot2.discrete.fill = NULL ) p"},{"path":"https://nanx.me/ggsci/articles/ggsci-faq.html","id":"customize-color-ordering-in-a-palette","dir":"Articles","previous_headings":"","what":"Customize color ordering in a palette","title":"Frequently Asked Questions about ggsci","text":"can customize color selection ordering discrete color palette ggsci using following function returns custom color scale function. method flexible encourages code reuse. Use scale_color_custom() example:","code":"#' Define a custom color scale #' #' @param pal Name of the color palette, as part of the #' original palette function name. #' @param palette Palette type, as defined in the #' original palette function (optional). #' @param n Number of (first) colors to fetch from the original palette. #' @param order A vector of color index (optional). #' @param alpha Transparency level. #' #' @return A custom color scale function. scale_color_custom <- function(pal, palette, n, order, alpha = 1) { pal <- getFromNamespace(paste0(\"pal_\", pal), \"ggsci\") colors <- if (missing(palette)) { pal(alpha = alpha)(n) } else { pal(palette = palette, alpha = alpha)(n) } if (length(order) > length(colors)) { stop(\"The length of order exceeds the number of colors.\", call. = FALSE) } colors <- if (!missing(order)) colors[order] ggplot2::scale_color_manual(values = colors) } library(ggplot2) library(ggsci) set.seed(42) df <- data.frame( x = rnorm(100), y = rnorm(100), group = factor(sample(1:5, 100, replace = TRUE)) ) p <- ggplot(df, aes(x = x, y = y, color = group)) + geom_point(size = 3) + theme_minimal() p + scale_color_custom(\"d3\", palette = \"category20\", n = 20, order = c(14, 11, 13, 12, 15))"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"eyes finally opened understood nature. learned time love . — Claude Monet ggsci offers collection high-quality color palettes inspired colors used scientific journals, data visualization libraries, science fiction movies, TV shows. color palettes ggsci available ggplot2 scales. color palettes, corresponding scales named : scale_color_palname() scale_fill_palname() also provided aliases, scale_colour_palname() scale_color_palname(). available color palettes summarized table .","code":""},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"discrete-color-palettes","dir":"Articles","previous_headings":"","what":"Discrete color palettes","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"use scatterplots smooth curves, bar plots demonstrate discrete color palettes ggsci.","code":"library(\"ggsci\") library(\"ggplot2\") library(\"gridExtra\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.05, linewidth = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw()"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"npg","dir":"Articles","previous_headings":"Discrete color palettes","what":"NPG","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"NPG palette inspired plots journals published Nature Publishing Group:","code":"p1_npg <- p1 + scale_color_npg() p2_npg <- p2 + scale_fill_npg() grid.arrange(p1_npg, p2_npg, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"aaas","dir":"Articles","previous_headings":"Discrete color palettes","what":"AAAS","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"AAAS palette inspired plots journals published American Association Advancement Science:","code":"p1_aaas <- p1 + scale_color_aaas() p2_aaas <- p2 + scale_fill_aaas() grid.arrange(p1_aaas, p2_aaas, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"nejm","dir":"Articles","previous_headings":"Discrete color palettes","what":"NEJM","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"NEJM palette inspired plots New England Journal Medicine:","code":"p1_nejm <- p1 + scale_color_nejm() p2_nejm <- p2 + scale_fill_nejm() grid.arrange(p1_nejm, p2_nejm, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"lancet","dir":"Articles","previous_headings":"Discrete color palettes","what":"Lancet","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Lancet palette inspired plots Lancet journals, Lancet Oncology:","code":"p1_lancet <- p1 + scale_color_lancet() p2_lancet <- p2 + scale_fill_lancet() grid.arrange(p1_lancet, p2_lancet, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"jama","dir":"Articles","previous_headings":"Discrete color palettes","what":"JAMA","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"JAMA palette inspired plots Journal American Medical Association:","code":"p1_jama <- p1 + scale_color_jama() p2_jama <- p2 + scale_fill_jama() grid.arrange(p1_jama, p2_jama, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"jco","dir":"Articles","previous_headings":"Discrete color palettes","what":"JCO","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"JCO palette inspired plots Journal Clinical Oncology:","code":"p1_jco <- p1 + scale_color_jco() p2_jco <- p2 + scale_fill_jco() grid.arrange(p1_jco, p2_jco, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"ucscgb","dir":"Articles","previous_headings":"Discrete color palettes","what":"UCSCGB","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"UCSCGB palette colors used UCSC Genome Browser representing chromosomes. palette (interpolated, alpha) intensively used visualizations generated Circos.","code":"p1_ucscgb <- p1 + scale_color_ucscgb() p2_ucscgb <- p2 + scale_fill_ucscgb() grid.arrange(p1_ucscgb, p2_ucscgb, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"d3","dir":"Articles","previous_headings":"Discrete color palettes","what":"D3","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"D3 palette categorical colors used D3.js (version 3.x ). four palette types (category10, category20, category20b, category20c) available.","code":"p1_d3 <- p1 + scale_color_d3() p2_d3 <- p2 + scale_fill_d3() grid.arrange(p1_d3, p2_d3, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"locuszoom","dir":"Articles","previous_headings":"Discrete color palettes","what":"LocusZoom","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"LocusZoom palette based colors used LocusZoom.","code":"p1_locuszoom <- p1 + scale_color_locuszoom() p2_locuszoom <- p2 + scale_fill_locuszoom() grid.arrange(p1_locuszoom, p2_locuszoom, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"igv","dir":"Articles","previous_headings":"Discrete color palettes","what":"IGV","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"IGV palette colors used Integrative Genomics Viewer representing chromosomes. two palette types (default, alternating) available.","code":"p1_igv_default <- p1 + scale_color_igv() p2_igv_default <- p2 + scale_fill_igv() grid.arrange(p1_igv_default, p2_igv_default, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"cosmic","dir":"Articles","previous_headings":"Discrete color palettes","what":"COSMIC","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Color palettes inspired colors used projects Catalogue Somatic Mutations Cancers (COSMIC).","code":"p1_cosmic_hallmarks_light <- p1 + scale_color_cosmic(\"hallmarks_light\") p2_cosmic_hallmarks_light <- p2 + scale_fill_cosmic(\"hallmarks_light\") grid.arrange(p1_cosmic_hallmarks_light, p2_cosmic_hallmarks_light, ncol = 2) p1_cosmic_hallmarks_dark <- p1 + scale_color_cosmic(\"hallmarks_dark\") p2_cosmic_hallmarks_dark <- p2 + scale_fill_cosmic(\"hallmarks_dark\") grid.arrange(p1_cosmic_hallmarks_dark, p2_cosmic_hallmarks_dark, ncol = 2) p1_cosmic_signature <- p1 + scale_color_cosmic(\"signature_substitutions\") p2_cosmic_signature <- p2 + scale_fill_cosmic(\"signature_substitutions\") grid.arrange(p1_cosmic_signature, p2_cosmic_signature, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"uchicago","dir":"Articles","previous_headings":"Discrete color palettes","what":"UChicago","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"UChicago palette based colors used University Chicago. three palette types (default, light, dark) available.","code":"p1_uchicago <- p1 + scale_color_uchicago() p2_uchicago <- p2 + scale_fill_uchicago() grid.arrange(p1_uchicago, p2_uchicago, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"star-trek","dir":"Articles","previous_headings":"Discrete color palettes","what":"Star Trek","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired (uniform) colors Star Trek:","code":"p1_startrek <- p1 + scale_color_startrek() p2_startrek <- p2 + scale_fill_startrek() grid.arrange(p1_startrek, p2_startrek, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"tron-legacy","dir":"Articles","previous_headings":"Discrete color palettes","what":"Tron Legacy","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used Tron Legacy. suitable displaying data using dark theme:","code":"p1_tron <- p1 + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\"), legend.key = element_rect(fill = \"#2D2D2D\") ) + scale_color_tron() p2_tron <- p2 + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\") ) + scale_fill_tron() grid.arrange(p1_tron, p2_tron, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"futurama","dir":"Articles","previous_headings":"Discrete color palettes","what":"Futurama","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used TV show Futurama:","code":"p1_futurama <- p1 + scale_color_futurama() p2_futurama <- p2 + scale_fill_futurama() grid.arrange(p1_futurama, p2_futurama, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"rick-and-morty","dir":"Articles","previous_headings":"Discrete color palettes","what":"Rick and Morty","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used TV show Rick Morty:","code":"p1_rickandmorty <- p1 + scale_color_rickandmorty() p2_rickandmorty <- p2 + scale_fill_rickandmorty() grid.arrange(p1_rickandmorty, p2_rickandmorty, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"the-simpsons","dir":"Articles","previous_headings":"Discrete color palettes","what":"The Simpsons","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used TV show Simpsons:","code":"p1_simpsons <- p1 + scale_color_simpsons() p2_simpsons <- p2 + scale_fill_simpsons() grid.arrange(p1_simpsons, p2_simpsons, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"flat-ui","dir":"Articles","previous_headings":"Discrete color palettes","what":"Flat UI","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Three flat UI color palettes Flat UI Colors 2:","code":"p1_flatui <- p1 + scale_color_flatui() p2_flatui <- p2 + scale_fill_flatui() grid.arrange(p1_flatui, p2_flatui, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"frontiers","dir":"Articles","previous_headings":"Discrete color palettes","what":"Frontiers","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"color palette inspired Frontiers:","code":"p1_frontiers <- p1 + scale_color_frontiers() p2_frontiers <- p2 + scale_fill_frontiers() grid.arrange(p1_frontiers, p2_frontiers, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"continuous-color-palettes","dir":"Articles","previous_headings":"","what":"Continuous color palettes","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"use correlation matrix visualization (special type heatmap) demonstrate continuous color palettes ggsci.","code":"library(\"reshape2\") data(\"mtcars\") cor <- cor(unname(cbind(mtcars, mtcars, mtcars, mtcars))) cor_melt <- melt(cor) p3 <- ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = \"black\", linewidth = 0.3) + theme_void() + theme( axis.title.x = element_blank(), axis.title.y = element_blank() )"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"gsea","dir":"Articles","previous_headings":"Continuous color palettes","what":"GSEA","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"GSEA palette (continuous) inspired heatmaps generated GSEA GenePattern.","code":"p3_gsea <- p3 + scale_fill_gsea() p3_gsea_inv <- p3 + scale_fill_gsea(reverse = TRUE) grid.arrange(p3_gsea, p3_gsea_inv, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"material-design","dir":"Articles","previous_headings":"Continuous color palettes","what":"Material Design","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Material Design color palettes Material Design color system. generate random matrix first: Plot matrix 19 material design color palettes: figure , can see even though identical matrix visualized plots, palettes preferrable others eyes sensitive changes saturation levels.","code":"library(\"reshape2\") set.seed(42) k <- 9 x <- diag(k) x[upper.tri(x)] <- runif(sum(1:(k - 1)), 0, 1) x_melt <- melt(x) p4 <- ggplot(x_melt, aes(x = Var1, y = Var2, fill = value)) + geom_tile(colour = \"black\", linewidth = 0.3) + scale_x_continuous(expand = c(0, 0)) + scale_y_continuous(expand = c(0, 0)) + theme_bw() + theme( legend.position = \"none\", plot.background = element_blank(), axis.line = element_blank(), axis.ticks = element_blank(), axis.text.x = element_blank(), axis.text.y = element_blank(), axis.title.x = element_blank(), axis.title.y = element_blank(), panel.background = element_blank(), panel.border = element_blank(), panel.grid.major = element_blank(), panel.grid.minor = element_blank() ) grid.arrange( p4 + scale_fill_material(\"red\"), p4 + scale_fill_material(\"pink\"), p4 + scale_fill_material(\"purple\"), p4 + scale_fill_material(\"deep-purple\"), p4 + scale_fill_material(\"indigo\"), p4 + scale_fill_material(\"blue\"), p4 + scale_fill_material(\"light-blue\"), p4 + scale_fill_material(\"cyan\"), p4 + scale_fill_material(\"teal\"), p4 + scale_fill_material(\"green\"), p4 + scale_fill_material(\"light-green\"), p4 + scale_fill_material(\"lime\"), p4 + scale_fill_material(\"yellow\"), p4 + scale_fill_material(\"amber\"), p4 + scale_fill_material(\"orange\"), p4 + scale_fill_material(\"deep-orange\"), p4 + scale_fill_material(\"brown\"), p4 + scale_fill_material(\"grey\"), p4 + scale_fill_material(\"blue-grey\"), ncol = 6 )"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"non-ggplot2-graphics","dir":"Articles","previous_headings":"","what":"Non-ggplot2 graphics","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"apply color palettes ggsci graphics systems (base graphics lattice graphics), simply use palette generator functions table . example: able use generated hex color codes graphics systems accordingly. transparent level entire palette easily adjustable via argument \"alpha\" every generator scale function.","code":"mypal <- pal_npg(\"nrc\", alpha = 0.7)(9) mypal #> [1] \"#E64B35B2\" \"#4DBBD5B2\" \"#00A087B2\" \"#3C5488B2\" \"#F39B7FB2\" \"#8491B4B2\" #> [7] \"#91D1C2B2\" \"#DC0000B2\" \"#7E6148B2\" library(\"scales\") show_col(mypal)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"discussion","dir":"Articles","previous_headings":"","what":"Discussion","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Please note palettes might best choice certain purposes, color-blind safe, photocopy safe, print friendly. considerations, might want check color palettes like ColorBrewer viridis. color palettes package solely created research purposes. authors responsible usage palettes.","code":""},{"path":"https://nanx.me/ggsci/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Nan Xiao. Author, maintainer. Joshua Cook. Contributor. Clara Jégousse. Contributor. Miaozhu Li. Contributor.","code":""},{"path":"https://nanx.me/ggsci/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Xiao N (2024). ggsci: Scientific Journal Sci-Fi Themed Color Palettes 'ggplot2'. R package version 3.0.2, https://github.com/nanxstats/ggsci, https://nanx./ggsci/.","code":"@Manual{, title = {ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'}, author = {Nan Xiao}, year = {2024}, note = {R package version 3.0.2, https://github.com/nanxstats/ggsci}, url = {https://nanx.me/ggsci/}, }"},{"path":"https://nanx.me/ggsci/index.html","id":"ggsci-","dir":"","previous_headings":"","what":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"ggsci offers collection ggplot2 color palettes inspired scientific journals, data visualization libraries, science fiction movies, TV shows.","code":""},{"path":"https://nanx.me/ggsci/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"can install ggsci CRAN: try development version GitHub: Browse vignette (open vignette(\"ggsci\") R) quick-start guide.","code":"install.packages(\"ggsci\") remotes::install_github(\"nanxstats/ggsci\")"},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":"https://nanx.me/ggsci/index.html","id":"contribute","dir":"","previous_headings":"","what":"Contribute","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"contribute project, please take look Contributing Guidelines first. Please note ggsci project released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://nanx.me/ggsci/reference/ggsci-package.html","id":null,"dir":"Reference","previous_headings":"","what":"ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2' — ggsci-package","title":"ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2' — ggsci-package","text":"collection 'ggplot2' color palettes inspired plots scientific journals, data visualization libraries, science fiction movies, TV shows.","code":""},{"path":[]},{"path":"https://nanx.me/ggsci/reference/ggsci-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2' — ggsci-package","text":"Maintainer: Nan Xiao @nanx.(ORCID) contributors: Joshua Cook joshuacook0023@gmail.com [contributor] Clara Jégousse cat3@hi.[contributor] Miaozhu Li miaozhu.li@duke.edu [contributor]","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":null,"dir":"Reference","previous_headings":"","what":"AAAS Journal Color Palettes — pal_aaas","title":"AAAS Journal Color Palettes — pal_aaas","text":"Color palettes inspired plots journals published American Association Advancement Science (AAAS), Science Science Translational Medicine.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"AAAS Journal Color Palettes — pal_aaas","text":"","code":"pal_aaas(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"AAAS Journal Color Palettes — pal_aaas","text":"palette Palette type. Currently one available option: \"default\" (10-color palette inspired Science). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"AAAS Journal Color Palettes — pal_aaas","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"AAAS Journal Color Palettes — pal_aaas","text":"","code":"library(\"scales\") show_col(pal_aaas(\"default\")(10)) show_col(pal_aaas(\"default\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":null,"dir":"Reference","previous_headings":"","what":"COSMIC Color Palettes — pal_cosmic","title":"COSMIC Color Palettes — pal_cosmic","text":"Color palettes inspired colors used projects Catalogue Somatic Mutations Cancers (COSMIC)","code":""},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"COSMIC Color Palettes — pal_cosmic","text":"","code":"pal_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1 )"},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"COSMIC Color Palettes — pal_cosmic","text":"palette Palette type. Currently three available options: \"signature_substitutions\" (6-color palette), \"hallmarks_light\" (10-color palette), \"hallmarks_dark\" (10-color palette). \"hallmarks_light\" option Hanahan Weinberg (2011). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"COSMIC Color Palettes — pal_cosmic","text":"Joshua H. Cook | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"COSMIC Color Palettes — pal_cosmic","text":"","code":"library(\"scales\") show_col(pal_cosmic(\"hallmarks_light\")(10)) show_col(pal_cosmic(\"hallmarks_light\", alpha = 0.6)(10)) show_col(pal_cosmic(\"hallmarks_dark\")(10)) show_col(pal_cosmic(\"hallmarks_dark\", alpha = 0.6)(10)) show_col(pal_cosmic(\"signature_substitutions\")(6)) show_col(pal_cosmic(\"signature_substitutions\", alpha = 0.6)(6))"},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":null,"dir":"Reference","previous_headings":"","what":"D3.js Color Palettes — pal_d3","title":"D3.js Color Palettes — pal_d3","text":"Color palettes based colors used D3.js.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"D3.js Color Palettes — pal_d3","text":"","code":"pal_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1 )"},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"D3.js Color Palettes — pal_d3","text":"palette Palette type. 4 available options: \"category10\" (10-color palette); \"category20\" (20-color palette); \"category20b\" (20-color palette); \"category20c\" (20-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"D3.js Color Palettes — pal_d3","text":"https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"D3.js Color Palettes — pal_d3","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"D3.js Color Palettes — pal_d3","text":"","code":"library(\"scales\") show_col(pal_d3(\"category10\")(10)) show_col(pal_d3(\"category20\")(20)) show_col(pal_d3(\"category20b\")(20)) show_col(pal_d3(\"category20c\")(20))"},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":null,"dir":"Reference","previous_headings":"","what":"Flat UI Color Palettes — pal_flatui","title":"Flat UI Color Palettes — pal_flatui","text":"Color palettes inspired colors used Flat UI Colors.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flat UI Color Palettes — pal_flatui","text":"","code":"pal_flatui(palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flat UI Color Palettes — pal_flatui","text":"palette Palette type. Currently three available option: \"default\" (10-color palette). \"flattastic\" (12-color palette). \"aussie\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Flat UI Color Palettes — pal_flatui","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Flat UI Color Palettes — pal_flatui","text":"","code":"library(\"scales\") show_col(pal_flatui(\"default\")(10)) show_col(pal_flatui(\"flattastic\")(12)) show_col(pal_flatui(\"aussie\")(10)) show_col(pal_flatui(\"aussie\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":null,"dir":"Reference","previous_headings":"","what":"Frontiers Color Palettes — pal_frontiers","title":"Frontiers Color Palettes — pal_frontiers","text":"Color palettes inspired colors used Frontiers.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Frontiers Color Palettes — pal_frontiers","text":"","code":"pal_frontiers(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Frontiers Color Palettes — pal_frontiers","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Frontiers Color Palettes — pal_frontiers","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Frontiers Color Palettes — pal_frontiers","text":"","code":"library(\"scales\") show_col(pal_frontiers(\"default\")(7)) show_col(pal_frontiers(\"default\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":null,"dir":"Reference","previous_headings":"","what":"The Futurama Color Palettes — pal_futurama","title":"The Futurama Color Palettes — pal_futurama","text":"Color palettes inspired colors used Futurama.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Futurama Color Palettes — pal_futurama","text":"","code":"pal_futurama(palette = c(\"planetexpress\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Futurama Color Palettes — pal_futurama","text":"palette Palette type. Currently one available option: \"planetexpress\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Futurama Color Palettes — pal_futurama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Futurama Color Palettes — pal_futurama","text":"","code":"library(\"scales\") show_col(pal_futurama(\"planetexpress\")(12)) show_col(pal_futurama(\"planetexpress\", alpha = 0.6)(12))"},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":null,"dir":"Reference","previous_headings":"","what":"The GSEA GenePattern Color Palettes — pal_gsea","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"Color palette inspired colors used heatmaps plotted GSEA GenePattern.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"","code":"pal_gsea(palette = c(\"default\"), n = 12, alpha = 1, reverse = FALSE)"},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"palette Palette type. Currently one available option: \"default\" (continuous palette 12 base colors). n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"","code":"library(\"scales\") show_col(pal_gsea(\"default\")(12)) show_col(pal_gsea(\"default\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":null,"dir":"Reference","previous_headings":"","what":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"Color palettes based colors used Integrative Genomics Viewer (IGV).","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"","code":"pal_igv(palette = c(\"default\", \"alternating\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"palette Palette type. two available options: \"default\" (51-color palette); \"alternating\" (2-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"James T. Robinson, Helga Thorvaldsdóttir, Wendy Winckler, Mitchell Guttman, Eric S. Lander, Gad Getz, Jill P. Mesirov. Integrative Genomics Viewer. Nature Biotechnology 29, 24--26 (2011).","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"","code":"library(\"scales\") show_col(pal_igv(\"default\")(51)) show_col(pal_igv(\"alternating\")(2))"},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of the American Medical Association Color Palettes — pal_jama","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"Color palette inspired plots Journal American Medical Association.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"","code":"pal_jama(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"","code":"library(\"scales\") show_col(pal_jama(\"default\")(7)) show_col(pal_jama(\"default\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of Clinical Oncology Color Palettes — pal_jco","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"Color palette inspired plots Journal Clinical Oncology.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"","code":"pal_jco(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"","code":"library(\"scales\") show_col(pal_jco(\"default\")(10)) show_col(pal_jco(\"default\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":null,"dir":"Reference","previous_headings":"","what":"Lancet Journal Color Palettes — pal_lancet","title":"Lancet Journal Color Palettes — pal_lancet","text":"Color palettes inspired plots Lancet journals, Lancet Oncology.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lancet Journal Color Palettes — pal_lancet","text":"","code":"pal_lancet(palette = c(\"lanonc\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lancet Journal Color Palettes — pal_lancet","text":"palette Palette type. Currently one available option: \"lanonc\" (9-color palette inspired Lancet Oncology). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Lancet Journal Color Palettes — pal_lancet","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lancet Journal Color Palettes — pal_lancet","text":"","code":"library(\"scales\") show_col(pal_lancet(\"lanonc\")(9)) show_col(pal_lancet(\"lanonc\", alpha = 0.6)(9))"},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":null,"dir":"Reference","previous_headings":"","what":"LocusZoom Color Palette — pal_locuszoom","title":"LocusZoom Color Palette — pal_locuszoom","text":"Color palettes based colors used LocusZoom.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"LocusZoom Color Palette — pal_locuszoom","text":"","code":"pal_locuszoom(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"LocusZoom Color Palette — pal_locuszoom","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"LocusZoom Color Palette — pal_locuszoom","text":"Pruim, Randall J., et al. (2010). LocusZoom: regional visualization genome-wide association scan results. Bioinformatics, 26(18), 2336--2337.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"LocusZoom Color Palette — pal_locuszoom","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"LocusZoom Color Palette — pal_locuszoom","text":"","code":"library(\"scales\") show_col(pal_locuszoom(\"default\")(7)) show_col(pal_locuszoom(\"default\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Color Palettes — pal_material","title":"Material Design Color Palettes — pal_material","text":"Material Design color palettes.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Color Palettes — pal_material","text":"","code":"pal_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), n = 10, alpha = 1, reverse = FALSE )"},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Color Palettes — pal_material","text":"palette Palette type. 19 available options: \"red\" \"pink\" \"purple\" \"deep-purple\" \"indigo\" \"blue\" \"light-blue\" \"cyan\" \"teal\" \"green\" \"light-green\" \"lime\" \"yellow\" \"amber\" \"orange\", \"deep-orange\" \"brown\" \"grey\" \"blue-grey\" See Material Design color system details. n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Material Design Color Palettes — pal_material","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Color Palettes — pal_material","text":"","code":"library(\"scales\") show_col(pal_material(\"indigo\")(10)) show_col(pal_material(\"indigo\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":null,"dir":"Reference","previous_headings":"","what":"NEJM Color Palettes — pal_nejm","title":"NEJM Color Palettes — pal_nejm","text":"Color palette inspired plots New England Journal Medicine.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NEJM Color Palettes — pal_nejm","text":"","code":"pal_nejm(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NEJM Color Palettes — pal_nejm","text":"palette Palette type. Currently one available option: \"default\" (8-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NEJM Color Palettes — pal_nejm","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NEJM Color Palettes — pal_nejm","text":"","code":"library(\"scales\") show_col(pal_nejm(\"default\")(8)) show_col(pal_nejm(\"default\", alpha = 0.6)(8))"},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":null,"dir":"Reference","previous_headings":"","what":"NPG Journal Color Palettes — pal_npg","title":"NPG Journal Color Palettes — pal_npg","text":"Color palettes inspired plots journals published Nature Publishing Group, Nature Reviews Cancer.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NPG Journal Color Palettes — pal_npg","text":"","code":"pal_npg(palette = c(\"nrc\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NPG Journal Color Palettes — pal_npg","text":"palette Palette type. Currently one available option: \"nrc\" (10-color palette inspired Nature Reviews Cancer). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NPG Journal Color Palettes — pal_npg","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NPG Journal Color Palettes — pal_npg","text":"","code":"library(\"scales\") show_col(pal_npg(\"nrc\")(10)) show_col(pal_npg(\"nrc\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":null,"dir":"Reference","previous_headings":"","what":"Rick and Morty Color Palettes — pal_rickandmorty","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"Color palettes inspired colors used Rick Morty.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"","code":"pal_rickandmorty(palette = c(\"schwifty\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"palette Palette type. Currently one available option: \"schwifty\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"","code":"library(\"scales\") show_col(pal_rickandmorty(\"schwifty\")(12)) show_col(pal_rickandmorty(\"schwifty\", alpha = 0.6)(12))"},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":null,"dir":"Reference","previous_headings":"","what":"The Simpsons Color Palettes — pal_simpsons","title":"The Simpsons Color Palettes — pal_simpsons","text":"Color palettes inspired colors used Simpsons.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Simpsons Color Palettes — pal_simpsons","text":"","code":"pal_simpsons(palette = c(\"springfield\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Simpsons Color Palettes — pal_simpsons","text":"palette Palette type. Currently one available option: \"springfield\" (16-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Simpsons Color Palettes — pal_simpsons","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Simpsons Color Palettes — pal_simpsons","text":"","code":"library(\"scales\") show_col(pal_simpsons(\"springfield\")(16)) show_col(pal_simpsons(\"springfield\", alpha = 0.6)(16))"},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":null,"dir":"Reference","previous_headings":"","what":"Star Trek Color Palettes — pal_startrek","title":"Star Trek Color Palettes — pal_startrek","text":"Color palettes inspired colors used Star Trek.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Star Trek Color Palettes — pal_startrek","text":"","code":"pal_startrek(palette = c(\"uniform\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Star Trek Color Palettes — pal_startrek","text":"palette Palette type. Currently one available option: \"uniform\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Star Trek Color Palettes — pal_startrek","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Star Trek Color Palettes — pal_startrek","text":"","code":"library(\"scales\") show_col(pal_startrek(\"uniform\")(7)) show_col(pal_startrek(\"uniform\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":null,"dir":"Reference","previous_headings":"","what":"Tron Legacy Color Palettes — pal_tron","title":"Tron Legacy Color Palettes — pal_tron","text":"Color palettes inspired colors used Tron Legacy.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Tron Legacy Color Palettes — pal_tron","text":"","code":"pal_tron(palette = c(\"legacy\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Tron Legacy Color Palettes — pal_tron","text":"palette Palette type. Currently one available option: \"legacy\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Tron Legacy Color Palettes — pal_tron","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tron Legacy Color Palettes — pal_tron","text":"","code":"library(\"scales\") show_col(pal_tron(\"legacy\")(7)) show_col(pal_tron(\"legacy\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":null,"dir":"Reference","previous_headings":"","what":"The University of Chicago Color Palettes — pal_uchicago","title":"The University of Chicago Color Palettes — pal_uchicago","text":"Color palettes based colors used University Chicago.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The University of Chicago Color Palettes — pal_uchicago","text":"","code":"pal_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The University of Chicago Color Palettes — pal_uchicago","text":"palette Palette type. 3 available options: \"default\" (9-color palette); \"light\" (9-color light palette); \"dark\" (9-color dark palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"The University of Chicago Color Palettes — pal_uchicago","text":"https://news.uchicago.edu/sites/default/files/attachments/_uchicago.identity.guidelines.pdf","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The University of Chicago Color Palettes — pal_uchicago","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The University of Chicago Color Palettes — pal_uchicago","text":"","code":"library(\"scales\") show_col(pal_uchicago(\"default\")(9)) show_col(pal_uchicago(\"light\")(9)) show_col(pal_uchicago(\"dark\")(9))"},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":null,"dir":"Reference","previous_headings":"","what":"UCSC Genome Browser Color Palette — pal_ucscgb","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"Color palette UCSC Genome Browser chromosome colors.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"","code":"pal_ucscgb(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"palette Palette type. Currently one available option: \"default\" (26-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"","code":"library(\"scales\") show_col(pal_ucscgb(\"default\")(26)) show_col(pal_ucscgb(\"default\", alpha = 0.6)(26))"},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":null,"dir":"Reference","previous_headings":"","what":"The GSEA GenePattern Color Palettes — rgb_gsea","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"Color palette inspired colors used heatmaps plotted GSEA GenePattern.","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"","code":"rgb_gsea(palette = c(\"default\"), n = 12, alpha = 1, reverse = FALSE)"},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"palette Palette type. Currently one available option: \"default\" (continuous palette 12 base colors). n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"12 base colors used palette derived HeatMapImage documentation.","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"","code":"library(\"scales\") show_col(pal_gsea(\"default\")(12)) show_col(pal_gsea(\"default\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Color Palettes — rgb_material","title":"Material Design Color Palettes — rgb_material","text":"Material Design color palettes.","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Color Palettes — rgb_material","text":"","code":"rgb_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), n = 10, alpha = 1, reverse = FALSE )"},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Color Palettes — rgb_material","text":"palette Palette type. 19 available options: \"red\" \"pink\" \"purple\" \"deep-purple\" \"indigo\" \"blue\" \"light-blue\" \"cyan\" \"teal\" \"green\" \"light-green\" \"lime\" \"yellow\" \"amber\" \"orange\", \"deep-orange\" \"brown\" \"grey\" \"blue-grey\" See Material Design color system details. n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Material Design Color Palettes — rgb_material","text":"https://m2.material.io/design/color/-color-system.html","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Material Design Color Palettes — rgb_material","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Color Palettes — rgb_material","text":"","code":"library(\"scales\") show_col(pal_material(\"indigo\")(10)) show_col(pal_material(\"indigo\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":null,"dir":"Reference","previous_headings":"","what":"AAAS Journal Color Scales — scale_color_aaas","title":"AAAS Journal Color Scales — scale_color_aaas","text":"See pal_aaas details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"AAAS Journal Color Scales — scale_color_aaas","text":"","code":"scale_color_aaas(palette = c(\"default\"), alpha = 1, ...) scale_colour_aaas(palette = c(\"default\"), alpha = 1, ...) scale_fill_aaas(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"AAAS Journal Color Scales — scale_color_aaas","text":"palette Palette type. Currently one available option: \"default\" (10-color palette inspired Science). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"AAAS Journal Color Scales — scale_color_aaas","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"AAAS Journal Color Scales — scale_color_aaas","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_aaas() #> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0. #> ℹ Please use `linewidth` instead. #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_aaas()"},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":null,"dir":"Reference","previous_headings":"","what":"COSMIC Color Scales — scale_color_cosmic","title":"COSMIC Color Scales — scale_color_cosmic","text":"See pal_cosmic details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"COSMIC Color Scales — scale_color_cosmic","text":"","code":"scale_color_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1, ... ) scale_colour_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1, ... ) scale_fill_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"COSMIC Color Scales — scale_color_cosmic","text":"palette Palette type. Currently three available options: \"signature_substitutions\" (6-color palette), \"hallmarks_light\" (10-color palette), \"hallmarks_dark\" (10-color palette). \"hallmarks_light\" option Hanahan Weinberg (2011). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"COSMIC Color Scales — scale_color_cosmic","text":"Joshua H. Cook | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"COSMIC Color Scales — scale_color_cosmic","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_cosmic() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_cosmic()"},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":null,"dir":"Reference","previous_headings":"","what":"D3.js Color Scales — scale_color_d3","title":"D3.js Color Scales — scale_color_d3","text":"See pal_d3 details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"D3.js Color Scales — scale_color_d3","text":"","code":"scale_color_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1, ... ) scale_colour_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1, ... ) scale_fill_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"D3.js Color Scales — scale_color_d3","text":"palette Palette type. 4 available options: \"category10\" (10-color palette); \"category20\" (20-color palette); \"category20b\" (20-color palette); \"category20c\" (20-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"D3.js Color Scales — scale_color_d3","text":"https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"D3.js Color Scales — scale_color_d3","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"D3.js Color Scales — scale_color_d3","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_d3() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3() p1 + scale_color_d3(palette = \"category20\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3(palette = \"category20\") p1 + scale_color_d3(palette = \"category20b\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3(palette = \"category20b\") p1 + scale_color_d3(palette = \"category20c\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3(palette = \"category20c\")"},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":null,"dir":"Reference","previous_headings":"","what":"Flat UI Color Scales — scale_color_flatui","title":"Flat UI Color Scales — scale_color_flatui","text":"See pal_flatui details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flat UI Color Scales — scale_color_flatui","text":"","code":"scale_color_flatui( palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1, ... ) scale_colour_flatui( palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1, ... ) scale_fill_flatui( palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flat UI Color Scales — scale_color_flatui","text":"palette Palette type. Currently three available option: \"default\" (10-color palette). \"flattastic\" (12-color palette). \"aussie\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Flat UI Color Scales — scale_color_flatui","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Flat UI Color Scales — scale_color_flatui","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_flatui() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui() p1 + scale_color_flatui(palette = \"default\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui(palette = \"default\") p1 + scale_color_flatui(palette = \"flattastic\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui(palette = \"flattastic\") p1 + scale_color_flatui(palette = \"aussie\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui(palette = \"aussie\")"},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":null,"dir":"Reference","previous_headings":"","what":"Frontiers Color Scales — scale_color_frontiers","title":"Frontiers Color Scales — scale_color_frontiers","text":"See pal_frontiers details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Frontiers Color Scales — scale_color_frontiers","text":"","code":"scale_color_frontiers(palette = c(\"default\"), alpha = 1, ...) scale_colour_frontiers(palette = c(\"default\"), alpha = 1, ...) scale_fill_frontiers(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Frontiers Color Scales — scale_color_frontiers","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Frontiers Color Scales — scale_color_frontiers","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Frontiers Color Scales — scale_color_frontiers","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\"), legend.key = element_rect(fill = \"#2D2D2D\") ) + scale_color_frontiers() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\") ) + scale_fill_frontiers()"},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":null,"dir":"Reference","previous_headings":"","what":"The Futurama Color Scales — scale_color_futurama","title":"The Futurama Color Scales — scale_color_futurama","text":"See pal_futurama details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Futurama Color Scales — scale_color_futurama","text":"","code":"scale_color_futurama(palette = c(\"planetexpress\"), alpha = 1, ...) scale_colour_futurama(palette = c(\"planetexpress\"), alpha = 1, ...) scale_fill_futurama(palette = c(\"planetexpress\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Futurama Color Scales — scale_color_futurama","text":"palette Palette type. Currently one available option: \"planetexpress\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Futurama Color Scales — scale_color_futurama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Futurama Color Scales — scale_color_futurama","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_futurama() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_futurama()"},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":null,"dir":"Reference","previous_headings":"","what":"The GSEA GenePattern Color Scales — scale_color_gsea","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"See pal_gsea details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"","code":"scale_color_gsea(palette = c(\"default\"), alpha = 1, reverse = FALSE, ...) scale_colour_gsea(palette = c(\"default\"), alpha = 1, reverse = FALSE, ...) scale_fill_gsea(palette = c(\"default\"), alpha = 1, reverse = FALSE, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"palette Palette type. Currently one available option: \"default\" (continuous palette 12 base colors). alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed? ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"","code":"library(\"ggplot2\") library(\"reshape2\") data(\"mtcars\") cor <- cor(mtcars) cor_melt <- melt(cor) ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = \"black\", size = 0.3) + theme_bw() + scale_fill_gsea()"},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":null,"dir":"Reference","previous_headings":"","what":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"See pal_igv details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"","code":"scale_color_igv(palette = c(\"default\", \"alternating\"), alpha = 1, ...) scale_colour_igv(palette = c(\"default\", \"alternating\"), alpha = 1, ...) scale_fill_igv(palette = c(\"default\", \"alternating\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"palette Palette type. two available options: \"default\" (51-color palette); \"alternating\" (2-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_igv() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_igv() p1 + scale_colour_manual( values = rep(pal_igv(\"alternating\")(2), times = 3) ) #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_manual( values = rep(pal_igv(\"alternating\")(2), times = 3) )"},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of the American Medical Association Color Scales — scale_color_jama","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"See pal_jama details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"","code":"scale_color_jama(palette = c(\"default\"), alpha = 1, ...) scale_colour_jama(palette = c(\"default\"), alpha = 1, ...) scale_fill_jama(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_jama() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_jama()"},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of Clinical Oncology Color Scales — scale_color_jco","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"See pal_jco details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"","code":"scale_color_jco(palette = c(\"default\"), alpha = 1, ...) scale_colour_jco(palette = c(\"default\"), alpha = 1, ...) scale_fill_jco(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_jco() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_jco()"},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":null,"dir":"Reference","previous_headings":"","what":"Lancet Journal Color Scales — scale_color_lancet","title":"Lancet Journal Color Scales — scale_color_lancet","text":"See pal_lancet details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lancet Journal Color Scales — scale_color_lancet","text":"","code":"scale_color_lancet(palette = c(\"lanonc\"), alpha = 1, ...) scale_colour_lancet(palette = c(\"lanonc\"), alpha = 1, ...) scale_fill_lancet(palette = c(\"lanonc\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lancet Journal Color Scales — scale_color_lancet","text":"palette Palette type. Currently one available option: \"lanonc\" (9-color palette inspired Lancet Oncology). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Lancet Journal Color Scales — scale_color_lancet","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lancet Journal Color Scales — scale_color_lancet","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_lancet() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_lancet()"},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":null,"dir":"Reference","previous_headings":"","what":"LocusZoom Color Scales — scale_color_locuszoom","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"See pal_locuszoom details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"","code":"scale_color_locuszoom(palette = c(\"default\"), alpha = 1, ...) scale_colour_locuszoom(palette = c(\"default\"), alpha = 1, ...) scale_fill_locuszoom(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_locuszoom() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_locuszoom()"},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Color Palettes — scale_color_material","title":"Material Design Color Palettes — scale_color_material","text":"See pal_material details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Color Palettes — scale_color_material","text":"","code":"scale_color_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), alpha = 1, reverse = FALSE, ... ) scale_colour_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), alpha = 1, reverse = FALSE, ... ) scale_fill_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), alpha = 1, reverse = FALSE, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Color Palettes — scale_color_material","text":"palette Palette type. 19 available options: \"red\" \"pink\" \"purple\" \"deep-purple\" \"indigo\" \"blue\" \"light-blue\" \"cyan\" \"teal\" \"green\" \"light-green\" \"lime\" \"yellow\" \"amber\" \"orange\", \"deep-orange\" \"brown\" \"grey\" \"blue-grey\" See Material Design color system details. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed? ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Material Design Color Palettes — scale_color_material","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Color Palettes — scale_color_material","text":"","code":"library(\"ggplot2\") library(\"reshape2\") data(\"mtcars\") cor <- abs(cor(mtcars)) cor_melt <- melt(cor) ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = \"black\", size = 0.3) + theme_bw() + scale_fill_material(\"blue-grey\")"},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":null,"dir":"Reference","previous_headings":"","what":"NEJM Color Scales — scale_color_nejm","title":"NEJM Color Scales — scale_color_nejm","text":"See pal_nejm details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NEJM Color Scales — scale_color_nejm","text":"","code":"scale_color_nejm(palette = c(\"default\"), alpha = 1, ...) scale_colour_nejm(palette = c(\"default\"), alpha = 1, ...) scale_fill_nejm(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NEJM Color Scales — scale_color_nejm","text":"palette Palette type. Currently one available option: \"default\" (8-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NEJM Color Scales — scale_color_nejm","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NEJM Color Scales — scale_color_nejm","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_nejm() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_nejm()"},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":null,"dir":"Reference","previous_headings":"","what":"NPG Journal Color Scales — scale_color_npg","title":"NPG Journal Color Scales — scale_color_npg","text":"See pal_npg details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NPG Journal Color Scales — scale_color_npg","text":"","code":"scale_color_npg(palette = c(\"nrc\"), alpha = 1, ...) scale_colour_npg(palette = c(\"nrc\"), alpha = 1, ...) scale_fill_npg(palette = c(\"nrc\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NPG Journal Color Scales — scale_color_npg","text":"palette Palette type. Currently one available option: \"nrc\" (10-color palette inspired Nature Reviews Cancer). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NPG Journal Color Scales — scale_color_npg","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NPG Journal Color Scales — scale_color_npg","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_npg() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_npg()"},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":null,"dir":"Reference","previous_headings":"","what":"Rick and Morty Color Scales — scale_color_rickandmorty","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"See pal_rickandmorty details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"","code":"scale_color_rickandmorty(palette = c(\"schwifty\"), alpha = 1, ...) scale_colour_rickandmorty(palette = c(\"schwifty\"), alpha = 1, ...) scale_fill_rickandmorty(palette = c(\"schwifty\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"palette Palette type. Currently one available option: \"schwifty\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_rickandmorty() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_rickandmorty()"},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":null,"dir":"Reference","previous_headings":"","what":"The Simpsons Color Scales — scale_color_simpsons","title":"The Simpsons Color Scales — scale_color_simpsons","text":"See pal_simpsons details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Simpsons Color Scales — scale_color_simpsons","text":"","code":"scale_color_simpsons(palette = c(\"springfield\"), alpha = 1, ...) scale_colour_simpsons(palette = c(\"springfield\"), alpha = 1, ...) scale_fill_simpsons(palette = c(\"springfield\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Simpsons Color Scales — scale_color_simpsons","text":"palette Palette type. Currently one available option: \"springfield\" (16-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Simpsons Color Scales — scale_color_simpsons","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Simpsons Color Scales — scale_color_simpsons","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_simpsons() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_simpsons()"},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":null,"dir":"Reference","previous_headings":"","what":"Star Trek Color Scales — scale_color_startrek","title":"Star Trek Color Scales — scale_color_startrek","text":"See pal_startrek details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Star Trek Color Scales — scale_color_startrek","text":"","code":"scale_color_startrek(palette = c(\"uniform\"), alpha = 1, ...) scale_colour_startrek(palette = c(\"uniform\"), alpha = 1, ...) scale_fill_startrek(palette = c(\"uniform\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Star Trek Color Scales — scale_color_startrek","text":"palette Palette type. Currently one available option: \"uniform\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Star Trek Color Scales — scale_color_startrek","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Star Trek Color Scales — scale_color_startrek","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_startrek() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_startrek()"},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":null,"dir":"Reference","previous_headings":"","what":"Tron Legacy Color Scales — scale_color_tron","title":"Tron Legacy Color Scales — scale_color_tron","text":"See pal_tron details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Tron Legacy Color Scales — scale_color_tron","text":"","code":"scale_color_tron(palette = c(\"legacy\"), alpha = 1, ...) scale_colour_tron(palette = c(\"legacy\"), alpha = 1, ...) scale_fill_tron(palette = c(\"legacy\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Tron Legacy Color Scales — scale_color_tron","text":"palette Palette type. Currently one available option: \"legacy\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Tron Legacy Color Scales — scale_color_tron","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tron Legacy Color Scales — scale_color_tron","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\"), legend.key = element_rect(fill = \"#2D2D2D\") ) + scale_color_tron() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\") ) + scale_fill_tron()"},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":null,"dir":"Reference","previous_headings":"","what":"The University of Chicago Color Scales — scale_color_uchicago","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"See pal_uchicago details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"","code":"scale_color_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1, ...) scale_colour_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1, ...) scale_fill_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"palette Palette type. 3 available options: \"default\" (9-color palette); \"light\" (9-color light palette); \"dark\" (9-color dark palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"https://news.uchicago.edu/sites/default/files/attachments/_uchicago.identity.guidelines.pdf","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_uchicago() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_uchicago() p1 + scale_color_uchicago(palette = \"light\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_uchicago(palette = \"light\") p1 + scale_color_uchicago(palette = \"dark\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_uchicago(palette = \"dark\")"},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":null,"dir":"Reference","previous_headings":"","what":"UCSC Genome Browser Color Scales — scale_color_ucscgb","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"See pal_ucscgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"","code":"scale_color_ucscgb(palette = c(\"default\"), alpha = 1, ...) scale_colour_ucscgb(palette = c(\"default\"), alpha = 1, ...) scale_fill_ucscgb(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"palette Palette type. Currently one available option: \"default\" (26-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_ucscgb() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_ucscgb()"},{"path":[]},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-2","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.2","text":"Remove scale_name discrete_scale() calls argument deprecated ggplot2 3.5.0 (thanks, @DanChaltiel, #25).","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-301","dir":"Changelog","previous_headings":"","what":"ggsci 3.0.1","title":"ggsci 3.0.1","text":"CRAN release: 2024-03-02","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-1","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.1","text":"Expand FAQ vignette include solution customizing color selection ordering palette self-defined color scale functions (#23). Fix “lost braces” check notes r-devel using Unicode characters (a91faf1).","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-300","dir":"Changelog","previous_headings":"","what":"ggsci 3.0.0","title":"ggsci 3.0.0","text":"CRAN release: 2023-03-08","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-3-0-0","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 3.0.0","text":"scale_color_flatui() scale_fill_flatui() scale_color_frontiers() scale_fill_frontiers() (thanks, @clarajegousse, #14). scale_color_cosmic() scale_fill_cosmic()","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-0","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.0","text":"Use proper, three-component version number following Semantic Versioning. Reduce output figure size vignettes README.Rmd switching ragg PNG device using pngquant compression. simple solution interpolate color palettes data categories number colors discrete color scale. note using color scale consistently multiple ggplot2 plots setting global options (thanks, @DanChaltiel, #13). Replace size linewidth code examples ggplot2 >= 3.4.0. Replaced previous logo new hex sticker logo. Replaced previous CI/CD solutions GitHub Actions workflows. Fixed broken moved links function documentation vignettes. Removed LazyData field DESCRIPTION.","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-29","dir":"Changelog","previous_headings":"","what":"ggsci 2.9","title":"ggsci 2.9","text":"CRAN release: 2018-05-14","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-2-9","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 2.9","text":"New URL documentation website: https://nanx./ggsci/.","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-28","dir":"Changelog","previous_headings":"","what":"ggsci 2.8","title":"ggsci 2.8","text":"CRAN release: 2017-09-30","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-2-8","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 2.8","text":"Use system font stack instead Google Fonts vignettes avoid pandoc SSL issue.","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-27","dir":"Changelog","previous_headings":"","what":"ggsci 2.7","title":"ggsci 2.7","text":"CRAN release: 2017-06-12","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-2-7","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 2.7","text":"Two new discrete color palettes: JAMA Tron Legacy One new collection continuous palettes 19 color options: Material Design","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-24","dir":"Changelog","previous_headings":"","what":"ggsci 2.4","title":"ggsci 2.4","text":"CRAN release: 2017-03-08","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-2-4","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 2.4","text":"Four new discrete color palettes: NEJM LocusZoom IGV Star Trek","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-20","dir":"Changelog","previous_headings":"","what":"ggsci 2.0","title":"ggsci 2.0","text":"CRAN release: 2016-11-21","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-2-0","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 2.0","text":"Two new discrete color palettes: D3.js (v3) Futurama (Planet Express) first continuous color palette: GSEA GenePattern","code":""},{"path":[]},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-1-0","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 1.0","text":"Eight discrete color palettes (2016-04-01): NPG AAAS Lancet JCO UCSCGB UChicago Simpsons (Springfield) Rick Morty (Schwifty)","code":""}] +[{"path":[]},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"our-pledge","dir":"","previous_headings":"","what":"Our Pledge","title":"Contributor Covenant Code of Conduct","text":"members, contributors, leaders pledge make participation community harassment-free experience everyone, regardless age, body size, visible invisible disability, ethnicity, sex characteristics, gender identity expression, level experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, sexual identity orientation. pledge act interact ways contribute open, welcoming, diverse, inclusive, healthy community.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"our-standards","dir":"","previous_headings":"","what":"Our Standards","title":"Contributor Covenant Code of Conduct","text":"Examples behavior contributes positive environment community include: Demonstrating empathy kindness toward people respectful differing opinions, viewpoints, experiences Giving gracefully accepting constructive feedback Accepting responsibility apologizing affected mistakes, learning experience Focusing best just us individuals, overall community Examples unacceptable behavior include: use sexualized language imagery, sexual attention advances kind Trolling, insulting derogatory comments, personal political attacks Public private harassment Publishing others’ private information, physical email address, without explicit permission conduct reasonably considered inappropriate professional setting","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"enforcement-responsibilities","dir":"","previous_headings":"","what":"Enforcement Responsibilities","title":"Contributor Covenant Code of Conduct","text":"Community leaders responsible clarifying enforcing standards acceptable behavior take appropriate fair corrective action response behavior deem inappropriate, threatening, offensive, harmful. Community leaders right responsibility remove, edit, reject comments, commits, code, wiki edits, issues, contributions aligned Code Conduct, communicate reasons moderation decisions appropriate.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"scope","dir":"","previous_headings":"","what":"Scope","title":"Contributor Covenant Code of Conduct","text":"Code Conduct applies within community spaces, also applies individual officially representing community public spaces. Examples representing community include using official e-mail address, posting via official social media account, acting appointed representative online offline event.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"enforcement","dir":"","previous_headings":"","what":"Enforcement","title":"Contributor Covenant Code of Conduct","text":"Instances abusive, harassing, otherwise unacceptable behavior may reported community leaders responsible enforcement @nanx.. complaints reviewed investigated promptly fairly. community leaders obligated respect privacy security reporter incident.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"enforcement-guidelines","dir":"","previous_headings":"","what":"Enforcement Guidelines","title":"Contributor Covenant Code of Conduct","text":"Community leaders follow Community Impact Guidelines determining consequences action deem violation Code Conduct:","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_1-correction","dir":"","previous_headings":"Enforcement Guidelines","what":"1. Correction","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Use inappropriate language behavior deemed unprofessional unwelcome community. Consequence: private, written warning community leaders, providing clarity around nature violation explanation behavior inappropriate. public apology may requested.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_2-warning","dir":"","previous_headings":"Enforcement Guidelines","what":"2. Warning","title":"Contributor Covenant Code of Conduct","text":"Community Impact: violation single incident series actions. Consequence: warning consequences continued behavior. interaction people involved, including unsolicited interaction enforcing Code Conduct, specified period time. includes avoiding interactions community spaces well external channels like social media. Violating terms may lead temporary permanent ban.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_3-temporary-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"3. Temporary Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: serious violation community standards, including sustained inappropriate behavior. Consequence: temporary ban sort interaction public communication community specified period time. public private interaction people involved, including unsolicited interaction enforcing Code Conduct, allowed period. Violating terms may lead permanent ban.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"id_4-permanent-ban","dir":"","previous_headings":"Enforcement Guidelines","what":"4. Permanent Ban","title":"Contributor Covenant Code of Conduct","text":"Community Impact: Demonstrating pattern violation community standards, including sustained inappropriate behavior, harassment individual, aggression toward disparagement classes individuals. Consequence: permanent ban sort public interaction within community.","code":""},{"path":"https://nanx.me/ggsci/CODE_OF_CONDUCT.html","id":"attribution","dir":"","previous_headings":"","what":"Attribution","title":"Contributor Covenant Code of Conduct","text":"Code Conduct adapted Contributor Covenant, version 2.1, available https://www.contributor-covenant.org/version/2/1/code_of_conduct.html. Community Impact Guidelines inspired [Mozilla’s code conduct enforcement ladder][https://github.com/mozilla/inclusion]. answers common questions code conduct, see FAQ https://www.contributor-covenant.org/faq. Translations available https://www.contributor-covenant.org/translations.","code":""},{"path":"https://nanx.me/ggsci/CONTRIBUTING.html","id":null,"dir":"","previous_headings":"","what":"Contributing to ggsci","title":"Contributing to ggsci","text":"👍🎉 First , thanks taking time contribute! 🎉👍 contribute project : Filing bug report feature request issue. Suggesting change via pull request.","code":""},{"path":"https://nanx.me/ggsci/CONTRIBUTING.html","id":"issues","dir":"","previous_headings":"","what":"Issues","title":"Contributing to ggsci","text":"file issue possible bug, please try include: Relevant package versions Necessary code data reproduce issue","code":""},{"path":"https://nanx.me/ggsci/CONTRIBUTING.html","id":"pull-requests","dir":"","previous_headings":"","what":"Pull Requests","title":"Contributing to ggsci","text":"suggest change via pull requests, please: Fork repository GitHub account. Clone forked repository local machine, make changes. Commit push changes GitHub. Create pull request.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://nanx.me/ggsci/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":" Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://nanx.me/ggsci/articles/ggsci-faq.html","id":"what-if-my-data-has-more-categories-than-the-number-of-colors-offered","dir":"Articles","previous_headings":"","what":"What if my data has more categories than the number of colors offered?","title":"Frequently Asked Questions about ggsci","text":"Although recommended encode many categories different colors, practice, one can still create “adaptive” color palette based existing discrete color palettes ggsci. See blog post detailed guide creating adaptive ggplot2 color scales color interpolation.","code":""},{"path":"https://nanx.me/ggsci/articles/ggsci-faq.html","id":"use-a-color-scale-consistently-for-multiple-plots-in-a-document","dir":"Articles","previous_headings":"","what":"Use a color scale consistently for multiple plots in a document","title":"Frequently Asked Questions about ggsci","text":"apply color scale plots document avoid repetition, simple solution setting two global options ggplot2.discrete.colour ggplot2.discrete.fill. example:","code":"library(\"ggplot2\") p <- ggplot(mpg, aes(displ, hwy, colour = factor(cyl), fill = factor(cyl))) + geom_point() + geom_smooth(method = \"lm\") + theme_bw() p # Set global options options( ggplot2.discrete.colour = ggsci::scale_colour_d3, ggplot2.discrete.fill = ggsci::scale_fill_d3 ) p # Restore original options after use options( ggplot2.discrete.colour = NULL, ggplot2.discrete.fill = NULL ) p"},{"path":"https://nanx.me/ggsci/articles/ggsci-faq.html","id":"customize-color-ordering-in-a-palette","dir":"Articles","previous_headings":"","what":"Customize color ordering in a palette","title":"Frequently Asked Questions about ggsci","text":"can customize color selection ordering discrete color palette ggsci using following function returns custom color scale function. method flexible encourages code reuse. Use scale_color_custom() example:","code":"#' Define a custom color scale #' #' @param pal Name of the color palette, as part of the #' original palette function name. #' @param palette Palette type, as defined in the #' original palette function (optional). #' @param n Number of (first) colors to fetch from the original palette. #' @param order A vector of color index (optional). #' @param alpha Transparency level. #' #' @return A custom color scale function. scale_color_custom <- function(pal, palette, n, order, alpha = 1) { pal <- getFromNamespace(paste0(\"pal_\", pal), \"ggsci\") colors <- if (missing(palette)) { pal(alpha = alpha)(n) } else { pal(palette = palette, alpha = alpha)(n) } if (length(order) > length(colors)) { stop(\"The length of order exceeds the number of colors.\", call. = FALSE) } colors <- if (!missing(order)) colors[order] ggplot2::scale_color_manual(values = colors) } library(ggplot2) library(ggsci) set.seed(42) df <- data.frame( x = rnorm(100), y = rnorm(100), group = factor(sample(1:5, 100, replace = TRUE)) ) p <- ggplot(df, aes(x = x, y = y, color = group)) + geom_point(size = 3) + theme_minimal() p + scale_color_custom(\"d3\", palette = \"category20\", n = 20, order = c(14, 11, 13, 12, 15))"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"introduction","dir":"Articles","previous_headings":"","what":"Introduction","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"eyes finally opened understood nature. learned time love . — Claude Monet ggsci offers collection high-quality color palettes inspired colors used scientific journals, data visualization libraries, science fiction movies, TV shows. color palettes ggsci available ggplot2 scales. color palettes, corresponding scales named : scale_color_palname() scale_fill_palname() also provided aliases, scale_colour_palname() scale_color_palname(). available color palettes summarized table .","code":""},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"discrete-color-palettes","dir":"Articles","previous_headings":"","what":"Discrete color palettes","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"use scatterplots smooth curves, bar plots demonstrate discrete color palettes ggsci.","code":"library(\"ggsci\") library(\"ggplot2\") library(\"gridExtra\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.05, linewidth = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw()"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"npg","dir":"Articles","previous_headings":"Discrete color palettes","what":"NPG","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"NPG palette inspired plots journals published Nature Publishing Group:","code":"p1_npg <- p1 + scale_color_npg() p2_npg <- p2 + scale_fill_npg() grid.arrange(p1_npg, p2_npg, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"aaas","dir":"Articles","previous_headings":"Discrete color palettes","what":"AAAS","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"AAAS palette inspired plots journals published American Association Advancement Science:","code":"p1_aaas <- p1 + scale_color_aaas() p2_aaas <- p2 + scale_fill_aaas() grid.arrange(p1_aaas, p2_aaas, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"nejm","dir":"Articles","previous_headings":"Discrete color palettes","what":"NEJM","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"NEJM palette inspired plots New England Journal Medicine:","code":"p1_nejm <- p1 + scale_color_nejm() p2_nejm <- p2 + scale_fill_nejm() grid.arrange(p1_nejm, p2_nejm, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"lancet","dir":"Articles","previous_headings":"Discrete color palettes","what":"Lancet","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Lancet palette inspired plots Lancet journals, Lancet Oncology:","code":"p1_lancet <- p1 + scale_color_lancet() p2_lancet <- p2 + scale_fill_lancet() grid.arrange(p1_lancet, p2_lancet, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"jama","dir":"Articles","previous_headings":"Discrete color palettes","what":"JAMA","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"JAMA palette inspired plots Journal American Medical Association:","code":"p1_jama <- p1 + scale_color_jama() p2_jama <- p2 + scale_fill_jama() grid.arrange(p1_jama, p2_jama, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"jco","dir":"Articles","previous_headings":"Discrete color palettes","what":"JCO","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"JCO palette inspired plots Journal Clinical Oncology:","code":"p1_jco <- p1 + scale_color_jco() p2_jco <- p2 + scale_fill_jco() grid.arrange(p1_jco, p2_jco, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"ucscgb","dir":"Articles","previous_headings":"Discrete color palettes","what":"UCSCGB","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"UCSCGB palette colors used UCSC Genome Browser representing chromosomes. palette (interpolated, alpha) intensively used visualizations generated Circos.","code":"p1_ucscgb <- p1 + scale_color_ucscgb() p2_ucscgb <- p2 + scale_fill_ucscgb() grid.arrange(p1_ucscgb, p2_ucscgb, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"d3","dir":"Articles","previous_headings":"Discrete color palettes","what":"D3","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"D3 palette categorical colors used D3.js (version 3.x ). four palette types (category10, category20, category20b, category20c) available.","code":"p1_d3 <- p1 + scale_color_d3() p2_d3 <- p2 + scale_fill_d3() grid.arrange(p1_d3, p2_d3, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"locuszoom","dir":"Articles","previous_headings":"Discrete color palettes","what":"LocusZoom","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"LocusZoom palette based colors used LocusZoom.","code":"p1_locuszoom <- p1 + scale_color_locuszoom() p2_locuszoom <- p2 + scale_fill_locuszoom() grid.arrange(p1_locuszoom, p2_locuszoom, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"igv","dir":"Articles","previous_headings":"Discrete color palettes","what":"IGV","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"IGV palette colors used Integrative Genomics Viewer representing chromosomes. two palette types (default, alternating) available.","code":"p1_igv_default <- p1 + scale_color_igv() p2_igv_default <- p2 + scale_fill_igv() grid.arrange(p1_igv_default, p2_igv_default, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"cosmic","dir":"Articles","previous_headings":"Discrete color palettes","what":"COSMIC","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Color palettes inspired colors used projects Catalogue Somatic Mutations Cancers (COSMIC).","code":"p1_cosmic_hallmarks_light <- p1 + scale_color_cosmic(\"hallmarks_light\") p2_cosmic_hallmarks_light <- p2 + scale_fill_cosmic(\"hallmarks_light\") grid.arrange(p1_cosmic_hallmarks_light, p2_cosmic_hallmarks_light, ncol = 2) p1_cosmic_hallmarks_dark <- p1 + scale_color_cosmic(\"hallmarks_dark\") p2_cosmic_hallmarks_dark <- p2 + scale_fill_cosmic(\"hallmarks_dark\") grid.arrange(p1_cosmic_hallmarks_dark, p2_cosmic_hallmarks_dark, ncol = 2) p1_cosmic_signature <- p1 + scale_color_cosmic(\"signature_substitutions\") p2_cosmic_signature <- p2 + scale_fill_cosmic(\"signature_substitutions\") grid.arrange(p1_cosmic_signature, p2_cosmic_signature, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"uchicago","dir":"Articles","previous_headings":"Discrete color palettes","what":"UChicago","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"UChicago palette based colors used University Chicago. three palette types (default, light, dark) available.","code":"p1_uchicago <- p1 + scale_color_uchicago() p2_uchicago <- p2 + scale_fill_uchicago() grid.arrange(p1_uchicago, p2_uchicago, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"star-trek","dir":"Articles","previous_headings":"Discrete color palettes","what":"Star Trek","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired (uniform) colors Star Trek:","code":"p1_startrek <- p1 + scale_color_startrek() p2_startrek <- p2 + scale_fill_startrek() grid.arrange(p1_startrek, p2_startrek, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"tron-legacy","dir":"Articles","previous_headings":"Discrete color palettes","what":"Tron Legacy","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used Tron Legacy. suitable displaying data using dark theme:","code":"p1_tron <- p1 + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\"), legend.key = element_rect(fill = \"#2D2D2D\") ) + scale_color_tron() p2_tron <- p2 + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\") ) + scale_fill_tron() grid.arrange(p1_tron, p2_tron, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"futurama","dir":"Articles","previous_headings":"Discrete color palettes","what":"Futurama","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used TV show Futurama:","code":"p1_futurama <- p1 + scale_color_futurama() p2_futurama <- p2 + scale_fill_futurama() grid.arrange(p1_futurama, p2_futurama, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"rick-and-morty","dir":"Articles","previous_headings":"Discrete color palettes","what":"Rick and Morty","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used TV show Rick Morty:","code":"p1_rickandmorty <- p1 + scale_color_rickandmorty() p2_rickandmorty <- p2 + scale_fill_rickandmorty() grid.arrange(p1_rickandmorty, p2_rickandmorty, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"the-simpsons","dir":"Articles","previous_headings":"Discrete color palettes","what":"The Simpsons","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"palette inspired colors used TV show Simpsons:","code":"p1_simpsons <- p1 + scale_color_simpsons() p2_simpsons <- p2 + scale_fill_simpsons() grid.arrange(p1_simpsons, p2_simpsons, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"flat-ui","dir":"Articles","previous_headings":"Discrete color palettes","what":"Flat UI","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Three flat UI color palettes Flat UI Colors 2:","code":"p1_flatui <- p1 + scale_color_flatui() p2_flatui <- p2 + scale_fill_flatui() grid.arrange(p1_flatui, p2_flatui, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"frontiers","dir":"Articles","previous_headings":"Discrete color palettes","what":"Frontiers","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"color palette inspired Frontiers:","code":"p1_frontiers <- p1 + scale_color_frontiers() p2_frontiers <- p2 + scale_fill_frontiers() grid.arrange(p1_frontiers, p2_frontiers, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"continuous-color-palettes","dir":"Articles","previous_headings":"","what":"Continuous color palettes","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"use correlation matrix visualization (special type heatmap) demonstrate continuous color palettes ggsci.","code":"library(\"reshape2\") data(\"mtcars\") cor <- cor(unname(cbind(mtcars, mtcars, mtcars, mtcars))) cor_melt <- melt(cor) p3 <- ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = \"black\", linewidth = 0.3) + theme_void() + theme( axis.title.x = element_blank(), axis.title.y = element_blank() )"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"gsea","dir":"Articles","previous_headings":"Continuous color palettes","what":"GSEA","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"GSEA palette (continuous) inspired heatmaps generated GSEA GenePattern.","code":"p3_gsea <- p3 + scale_fill_gsea() p3_gsea_inv <- p3 + scale_fill_gsea(reverse = TRUE) grid.arrange(p3_gsea, p3_gsea_inv, ncol = 2)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"material-design","dir":"Articles","previous_headings":"Continuous color palettes","what":"Material Design","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Material Design color palettes Material Design color system. generate random matrix first: Plot matrix 19 material design color palettes: figure , can see even though identical matrix visualized plots, palettes preferrable others eyes sensitive changes saturation levels.","code":"library(\"reshape2\") set.seed(42) k <- 9 x <- diag(k) x[upper.tri(x)] <- runif(sum(1:(k - 1)), 0, 1) x_melt <- melt(x) p4 <- ggplot(x_melt, aes(x = Var1, y = Var2, fill = value)) + geom_tile(colour = \"black\", linewidth = 0.3) + scale_x_continuous(expand = c(0, 0)) + scale_y_continuous(expand = c(0, 0)) + theme_bw() + theme( legend.position = \"none\", plot.background = element_blank(), axis.line = element_blank(), axis.ticks = element_blank(), axis.text.x = element_blank(), axis.text.y = element_blank(), axis.title.x = element_blank(), axis.title.y = element_blank(), panel.background = element_blank(), panel.border = element_blank(), panel.grid.major = element_blank(), panel.grid.minor = element_blank() ) grid.arrange( p4 + scale_fill_material(\"red\"), p4 + scale_fill_material(\"pink\"), p4 + scale_fill_material(\"purple\"), p4 + scale_fill_material(\"deep-purple\"), p4 + scale_fill_material(\"indigo\"), p4 + scale_fill_material(\"blue\"), p4 + scale_fill_material(\"light-blue\"), p4 + scale_fill_material(\"cyan\"), p4 + scale_fill_material(\"teal\"), p4 + scale_fill_material(\"green\"), p4 + scale_fill_material(\"light-green\"), p4 + scale_fill_material(\"lime\"), p4 + scale_fill_material(\"yellow\"), p4 + scale_fill_material(\"amber\"), p4 + scale_fill_material(\"orange\"), p4 + scale_fill_material(\"deep-orange\"), p4 + scale_fill_material(\"brown\"), p4 + scale_fill_material(\"grey\"), p4 + scale_fill_material(\"blue-grey\"), ncol = 6 )"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"non-ggplot2-graphics","dir":"Articles","previous_headings":"","what":"Non-ggplot2 graphics","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"apply color palettes ggsci graphics systems (base graphics lattice graphics), simply use palette generator functions table . example: able use generated hex color codes graphics systems accordingly. transparent level entire palette easily adjustable via argument \"alpha\" every generator scale function.","code":"mypal <- pal_npg(\"nrc\", alpha = 0.7)(9) mypal #> [1] \"#E64B35B2\" \"#4DBBD5B2\" \"#00A087B2\" \"#3C5488B2\" \"#F39B7FB2\" \"#8491B4B2\" #> [7] \"#91D1C2B2\" \"#DC0000B2\" \"#7E6148B2\" library(\"scales\") show_col(mypal)"},{"path":"https://nanx.me/ggsci/articles/ggsci.html","id":"discussion","dir":"Articles","previous_headings":"","what":"Discussion","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"Please note palettes might best choice certain purposes, color-blind safe, photocopy safe, print friendly. considerations, might want check color palettes like ColorBrewer viridis. color palettes package solely created research purposes. authors responsible usage palettes.","code":""},{"path":"https://nanx.me/ggsci/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Nan Xiao. Author, maintainer. Joshua Cook. Contributor. Clara Jégousse. Contributor. Miaozhu Li. Contributor.","code":""},{"path":"https://nanx.me/ggsci/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Xiao N (2024). ggsci: Scientific Journal Sci-Fi Themed Color Palettes 'ggplot2'. R package version 3.0.3, https://github.com/nanxstats/ggsci, https://nanx./ggsci/.","code":"@Manual{, title = {ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'}, author = {Nan Xiao}, year = {2024}, note = {R package version 3.0.3, https://github.com/nanxstats/ggsci}, url = {https://nanx.me/ggsci/}, }"},{"path":"https://nanx.me/ggsci/index.html","id":"ggsci-","dir":"","previous_headings":"","what":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"ggsci offers collection ggplot2 color palettes inspired scientific journals, data visualization libraries, science fiction movies, TV shows.","code":""},{"path":"https://nanx.me/ggsci/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"can install ggsci CRAN: try development version GitHub: Browse vignette (open vignette(\"ggsci\") R) quick-start guide.","code":"install.packages(\"ggsci\") remotes::install_github(\"nanxstats/ggsci\")"},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":[]},{"path":"https://nanx.me/ggsci/index.html","id":"contribute","dir":"","previous_headings":"","what":"Contribute","title":"Scientific Journal and Sci-Fi Themed Color Palettes for ggplot2","text":"contribute project, please take look Contributing Guidelines first. Please note ggsci project released Contributor Code Conduct. contributing project, agree abide terms.","code":""},{"path":"https://nanx.me/ggsci/reference/ggsci-package.html","id":null,"dir":"Reference","previous_headings":"","what":"ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2' — ggsci-package","title":"ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2' — ggsci-package","text":"collection 'ggplot2' color palettes inspired plots scientific journals, data visualization libraries, science fiction movies, TV shows.","code":""},{"path":[]},{"path":"https://nanx.me/ggsci/reference/ggsci-package.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2' — ggsci-package","text":"Maintainer: Nan Xiao @nanx.(ORCID) contributors: Joshua Cook joshuacook0023@gmail.com [contributor] Clara Jégousse cat3@hi.[contributor] Miaozhu Li miaozhu.li@duke.edu [contributor]","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":null,"dir":"Reference","previous_headings":"","what":"AAAS Journal Color Palettes — pal_aaas","title":"AAAS Journal Color Palettes — pal_aaas","text":"Color palettes inspired plots journals published American Association Advancement Science (AAAS), Science Science Translational Medicine.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"AAAS Journal Color Palettes — pal_aaas","text":"","code":"pal_aaas(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"AAAS Journal Color Palettes — pal_aaas","text":"palette Palette type. Currently one available option: \"default\" (10-color palette inspired Science). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"AAAS Journal Color Palettes — pal_aaas","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_aaas.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"AAAS Journal Color Palettes — pal_aaas","text":"","code":"library(\"scales\") show_col(pal_aaas(\"default\")(10)) show_col(pal_aaas(\"default\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":null,"dir":"Reference","previous_headings":"","what":"COSMIC Color Palettes — pal_cosmic","title":"COSMIC Color Palettes — pal_cosmic","text":"Color palettes inspired colors used projects Catalogue Somatic Mutations Cancers (COSMIC)","code":""},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"COSMIC Color Palettes — pal_cosmic","text":"","code":"pal_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1 )"},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"COSMIC Color Palettes — pal_cosmic","text":"palette Palette type. Currently three available options: \"signature_substitutions\" (6-color palette), \"hallmarks_light\" (10-color palette), \"hallmarks_dark\" (10-color palette). \"hallmarks_light\" option Hanahan Weinberg (2011). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"COSMIC Color Palettes — pal_cosmic","text":"Joshua H. Cook | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_cosmic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"COSMIC Color Palettes — pal_cosmic","text":"","code":"library(\"scales\") show_col(pal_cosmic(\"hallmarks_light\")(10)) show_col(pal_cosmic(\"hallmarks_light\", alpha = 0.6)(10)) show_col(pal_cosmic(\"hallmarks_dark\")(10)) show_col(pal_cosmic(\"hallmarks_dark\", alpha = 0.6)(10)) show_col(pal_cosmic(\"signature_substitutions\")(6)) show_col(pal_cosmic(\"signature_substitutions\", alpha = 0.6)(6))"},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":null,"dir":"Reference","previous_headings":"","what":"D3.js Color Palettes — pal_d3","title":"D3.js Color Palettes — pal_d3","text":"Color palettes based colors used D3.js.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"D3.js Color Palettes — pal_d3","text":"","code":"pal_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1 )"},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"D3.js Color Palettes — pal_d3","text":"palette Palette type. 4 available options: \"category10\" (10-color palette); \"category20\" (20-color palette); \"category20b\" (20-color palette); \"category20c\" (20-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"D3.js Color Palettes — pal_d3","text":"https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"D3.js Color Palettes — pal_d3","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_d3.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"D3.js Color Palettes — pal_d3","text":"","code":"library(\"scales\") show_col(pal_d3(\"category10\")(10)) show_col(pal_d3(\"category20\")(20)) show_col(pal_d3(\"category20b\")(20)) show_col(pal_d3(\"category20c\")(20))"},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":null,"dir":"Reference","previous_headings":"","what":"Flat UI Color Palettes — pal_flatui","title":"Flat UI Color Palettes — pal_flatui","text":"Color palettes inspired colors used Flat UI Colors.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flat UI Color Palettes — pal_flatui","text":"","code":"pal_flatui(palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flat UI Color Palettes — pal_flatui","text":"palette Palette type. Currently three available option: \"default\" (10-color palette). \"flattastic\" (12-color palette). \"aussie\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Flat UI Color Palettes — pal_flatui","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_flatui.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Flat UI Color Palettes — pal_flatui","text":"","code":"library(\"scales\") show_col(pal_flatui(\"default\")(10)) show_col(pal_flatui(\"flattastic\")(12)) show_col(pal_flatui(\"aussie\")(10)) show_col(pal_flatui(\"aussie\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":null,"dir":"Reference","previous_headings":"","what":"Frontiers Color Palettes — pal_frontiers","title":"Frontiers Color Palettes — pal_frontiers","text":"Color palettes inspired colors used Frontiers.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Frontiers Color Palettes — pal_frontiers","text":"","code":"pal_frontiers(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Frontiers Color Palettes — pal_frontiers","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Frontiers Color Palettes — pal_frontiers","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_frontiers.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Frontiers Color Palettes — pal_frontiers","text":"","code":"library(\"scales\") show_col(pal_frontiers(\"default\")(7)) show_col(pal_frontiers(\"default\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":null,"dir":"Reference","previous_headings":"","what":"The Futurama Color Palettes — pal_futurama","title":"The Futurama Color Palettes — pal_futurama","text":"Color palettes inspired colors used Futurama.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Futurama Color Palettes — pal_futurama","text":"","code":"pal_futurama(palette = c(\"planetexpress\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Futurama Color Palettes — pal_futurama","text":"palette Palette type. Currently one available option: \"planetexpress\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Futurama Color Palettes — pal_futurama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_futurama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Futurama Color Palettes — pal_futurama","text":"","code":"library(\"scales\") show_col(pal_futurama(\"planetexpress\")(12)) show_col(pal_futurama(\"planetexpress\", alpha = 0.6)(12))"},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":null,"dir":"Reference","previous_headings":"","what":"The GSEA GenePattern Color Palettes — pal_gsea","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"Color palette inspired colors used heatmaps plotted GSEA GenePattern.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"","code":"pal_gsea(palette = c(\"default\"), n = 12, alpha = 1, reverse = FALSE)"},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"palette Palette type. Currently one available option: \"default\" (continuous palette 12 base colors). n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_gsea.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The GSEA GenePattern Color Palettes — pal_gsea","text":"","code":"library(\"scales\") show_col(pal_gsea(\"default\")(12)) show_col(pal_gsea(\"default\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":null,"dir":"Reference","previous_headings":"","what":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"Color palettes based colors used Integrative Genomics Viewer (IGV).","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"","code":"pal_igv(palette = c(\"default\", \"alternating\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"palette Palette type. two available options: \"default\" (51-color palette); \"alternating\" (2-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"James T. Robinson, Helga Thorvaldsdóttir, Wendy Winckler, Mitchell Guttman, Eric S. Lander, Gad Getz, Jill P. Mesirov. Integrative Genomics Viewer. Nature Biotechnology 29, 24--26 (2011).","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_igv.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Integrative Genomics Viewer (IGV) Color Palettes — pal_igv","text":"","code":"library(\"scales\") show_col(pal_igv(\"default\")(51)) show_col(pal_igv(\"alternating\")(2))"},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of the American Medical Association Color Palettes — pal_jama","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"Color palette inspired plots Journal American Medical Association.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"","code":"pal_jama(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of the American Medical Association Color Palettes — pal_jama","text":"","code":"library(\"scales\") show_col(pal_jama(\"default\")(7)) show_col(pal_jama(\"default\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of Clinical Oncology Color Palettes — pal_jco","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"Color palette inspired plots Journal Clinical Oncology.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"","code":"pal_jco(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_jco.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of Clinical Oncology Color Palettes — pal_jco","text":"","code":"library(\"scales\") show_col(pal_jco(\"default\")(10)) show_col(pal_jco(\"default\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":null,"dir":"Reference","previous_headings":"","what":"Lancet Journal Color Palettes — pal_lancet","title":"Lancet Journal Color Palettes — pal_lancet","text":"Color palettes inspired plots Lancet journals, Lancet Oncology.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lancet Journal Color Palettes — pal_lancet","text":"","code":"pal_lancet(palette = c(\"lanonc\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lancet Journal Color Palettes — pal_lancet","text":"palette Palette type. Currently one available option: \"lanonc\" (9-color palette inspired Lancet Oncology). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Lancet Journal Color Palettes — pal_lancet","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_lancet.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lancet Journal Color Palettes — pal_lancet","text":"","code":"library(\"scales\") show_col(pal_lancet(\"lanonc\")(9)) show_col(pal_lancet(\"lanonc\", alpha = 0.6)(9))"},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":null,"dir":"Reference","previous_headings":"","what":"LocusZoom Color Palette — pal_locuszoom","title":"LocusZoom Color Palette — pal_locuszoom","text":"Color palettes based colors used LocusZoom.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"LocusZoom Color Palette — pal_locuszoom","text":"","code":"pal_locuszoom(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"LocusZoom Color Palette — pal_locuszoom","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"LocusZoom Color Palette — pal_locuszoom","text":"Pruim, Randall J., et al. (2010). LocusZoom: regional visualization genome-wide association scan results. Bioinformatics, 26(18), 2336--2337.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"LocusZoom Color Palette — pal_locuszoom","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_locuszoom.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"LocusZoom Color Palette — pal_locuszoom","text":"","code":"library(\"scales\") show_col(pal_locuszoom(\"default\")(7)) show_col(pal_locuszoom(\"default\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Color Palettes — pal_material","title":"Material Design Color Palettes — pal_material","text":"Material Design color palettes.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Color Palettes — pal_material","text":"","code":"pal_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), n = 10, alpha = 1, reverse = FALSE )"},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Color Palettes — pal_material","text":"palette Palette type. 19 available options: \"red\" \"pink\" \"purple\" \"deep-purple\" \"indigo\" \"blue\" \"light-blue\" \"cyan\" \"teal\" \"green\" \"light-green\" \"lime\" \"yellow\" \"amber\" \"orange\", \"deep-orange\" \"brown\" \"grey\" \"blue-grey\" See Material Design color system details. n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Material Design Color Palettes — pal_material","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_material.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Color Palettes — pal_material","text":"","code":"library(\"scales\") show_col(pal_material(\"indigo\")(10)) show_col(pal_material(\"indigo\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":null,"dir":"Reference","previous_headings":"","what":"NEJM Color Palettes — pal_nejm","title":"NEJM Color Palettes — pal_nejm","text":"Color palette inspired plots New England Journal Medicine.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NEJM Color Palettes — pal_nejm","text":"","code":"pal_nejm(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NEJM Color Palettes — pal_nejm","text":"palette Palette type. Currently one available option: \"default\" (8-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NEJM Color Palettes — pal_nejm","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_nejm.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NEJM Color Palettes — pal_nejm","text":"","code":"library(\"scales\") show_col(pal_nejm(\"default\")(8)) show_col(pal_nejm(\"default\", alpha = 0.6)(8))"},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":null,"dir":"Reference","previous_headings":"","what":"NPG Journal Color Palettes — pal_npg","title":"NPG Journal Color Palettes — pal_npg","text":"Color palettes inspired plots journals published Nature Publishing Group, Nature Reviews Cancer.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NPG Journal Color Palettes — pal_npg","text":"","code":"pal_npg(palette = c(\"nrc\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NPG Journal Color Palettes — pal_npg","text":"palette Palette type. Currently one available option: \"nrc\" (10-color palette inspired Nature Reviews Cancer). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NPG Journal Color Palettes — pal_npg","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_npg.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NPG Journal Color Palettes — pal_npg","text":"","code":"library(\"scales\") show_col(pal_npg(\"nrc\")(10)) show_col(pal_npg(\"nrc\", alpha = 0.6)(10))"},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":null,"dir":"Reference","previous_headings":"","what":"Rick and Morty Color Palettes — pal_rickandmorty","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"Color palettes inspired colors used Rick Morty.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"","code":"pal_rickandmorty(palette = c(\"schwifty\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"palette Palette type. Currently one available option: \"schwifty\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_rickandmorty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rick and Morty Color Palettes — pal_rickandmorty","text":"","code":"library(\"scales\") show_col(pal_rickandmorty(\"schwifty\")(12)) show_col(pal_rickandmorty(\"schwifty\", alpha = 0.6)(12))"},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":null,"dir":"Reference","previous_headings":"","what":"The Simpsons Color Palettes — pal_simpsons","title":"The Simpsons Color Palettes — pal_simpsons","text":"Color palettes inspired colors used Simpsons.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Simpsons Color Palettes — pal_simpsons","text":"","code":"pal_simpsons(palette = c(\"springfield\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Simpsons Color Palettes — pal_simpsons","text":"palette Palette type. Currently one available option: \"springfield\" (16-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Simpsons Color Palettes — pal_simpsons","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_simpsons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Simpsons Color Palettes — pal_simpsons","text":"","code":"library(\"scales\") show_col(pal_simpsons(\"springfield\")(16)) show_col(pal_simpsons(\"springfield\", alpha = 0.6)(16))"},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":null,"dir":"Reference","previous_headings":"","what":"Star Trek Color Palettes — pal_startrek","title":"Star Trek Color Palettes — pal_startrek","text":"Color palettes inspired colors used Star Trek.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Star Trek Color Palettes — pal_startrek","text":"","code":"pal_startrek(palette = c(\"uniform\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Star Trek Color Palettes — pal_startrek","text":"palette Palette type. Currently one available option: \"uniform\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Star Trek Color Palettes — pal_startrek","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_startrek.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Star Trek Color Palettes — pal_startrek","text":"","code":"library(\"scales\") show_col(pal_startrek(\"uniform\")(7)) show_col(pal_startrek(\"uniform\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":null,"dir":"Reference","previous_headings":"","what":"Tron Legacy Color Palettes — pal_tron","title":"Tron Legacy Color Palettes — pal_tron","text":"Color palettes inspired colors used Tron Legacy.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Tron Legacy Color Palettes — pal_tron","text":"","code":"pal_tron(palette = c(\"legacy\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Tron Legacy Color Palettes — pal_tron","text":"palette Palette type. Currently one available option: \"legacy\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Tron Legacy Color Palettes — pal_tron","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_tron.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tron Legacy Color Palettes — pal_tron","text":"","code":"library(\"scales\") show_col(pal_tron(\"legacy\")(7)) show_col(pal_tron(\"legacy\", alpha = 0.6)(7))"},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":null,"dir":"Reference","previous_headings":"","what":"The University of Chicago Color Palettes — pal_uchicago","title":"The University of Chicago Color Palettes — pal_uchicago","text":"Color palettes based colors used University Chicago.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The University of Chicago Color Palettes — pal_uchicago","text":"","code":"pal_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The University of Chicago Color Palettes — pal_uchicago","text":"palette Palette type. 3 available options: \"default\" (9-color palette); \"light\" (9-color light palette); \"dark\" (9-color dark palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"The University of Chicago Color Palettes — pal_uchicago","text":"https://news.uchicago.edu/sites/default/files/attachments/_uchicago.identity.guidelines.pdf","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The University of Chicago Color Palettes — pal_uchicago","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_uchicago.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The University of Chicago Color Palettes — pal_uchicago","text":"","code":"library(\"scales\") show_col(pal_uchicago(\"default\")(9)) show_col(pal_uchicago(\"light\")(9)) show_col(pal_uchicago(\"dark\")(9))"},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":null,"dir":"Reference","previous_headings":"","what":"UCSC Genome Browser Color Palette — pal_ucscgb","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"Color palette UCSC Genome Browser chromosome colors.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"","code":"pal_ucscgb(palette = c(\"default\"), alpha = 1)"},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"palette Palette type. Currently one available option: \"default\" (26-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/pal_ucscgb.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"UCSC Genome Browser Color Palette — pal_ucscgb","text":"","code":"library(\"scales\") show_col(pal_ucscgb(\"default\")(26)) show_col(pal_ucscgb(\"default\", alpha = 0.6)(26))"},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":null,"dir":"Reference","previous_headings":"","what":"The GSEA GenePattern Color Palettes — rgb_gsea","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"Color palette inspired colors used heatmaps plotted GSEA GenePattern.","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"","code":"rgb_gsea(palette = c(\"default\"), n = 12, alpha = 1, reverse = FALSE)"},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"palette Palette type. Currently one available option: \"default\" (continuous palette 12 base colors). n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"12 base colors used palette derived HeatMapImage documentation.","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_gsea.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The GSEA GenePattern Color Palettes — rgb_gsea","text":"","code":"library(\"scales\") show_col(pal_gsea(\"default\")(12)) show_col(pal_gsea(\"default\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Color Palettes — rgb_material","title":"Material Design Color Palettes — rgb_material","text":"Material Design color palettes.","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Color Palettes — rgb_material","text":"","code":"rgb_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), n = 10, alpha = 1, reverse = FALSE )"},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Color Palettes — rgb_material","text":"palette Palette type. 19 available options: \"red\" \"pink\" \"purple\" \"deep-purple\" \"indigo\" \"blue\" \"light-blue\" \"cyan\" \"teal\" \"green\" \"light-green\" \"lime\" \"yellow\" \"amber\" \"orange\", \"deep-orange\" \"brown\" \"grey\" \"blue-grey\" See Material Design color system details. n Number individual colors generated. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed?","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Material Design Color Palettes — rgb_material","text":"https://m2.material.io/design/color/-color-system.html","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Material Design Color Palettes — rgb_material","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/rgb_material.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Color Palettes — rgb_material","text":"","code":"library(\"scales\") show_col(pal_material(\"indigo\")(10)) show_col(pal_material(\"indigo\", n = 30, alpha = 0.6, reverse = TRUE)(30))"},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":null,"dir":"Reference","previous_headings":"","what":"AAAS Journal Color Scales — scale_color_aaas","title":"AAAS Journal Color Scales — scale_color_aaas","text":"See pal_aaas details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"AAAS Journal Color Scales — scale_color_aaas","text":"","code":"scale_color_aaas(palette = c(\"default\"), alpha = 1, ...) scale_colour_aaas(palette = c(\"default\"), alpha = 1, ...) scale_fill_aaas(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"AAAS Journal Color Scales — scale_color_aaas","text":"palette Palette type. Currently one available option: \"default\" (10-color palette inspired Science). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"AAAS Journal Color Scales — scale_color_aaas","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_aaas.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"AAAS Journal Color Scales — scale_color_aaas","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_aaas() #> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0. #> ℹ Please use `linewidth` instead. #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_aaas()"},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":null,"dir":"Reference","previous_headings":"","what":"COSMIC Color Scales — scale_color_cosmic","title":"COSMIC Color Scales — scale_color_cosmic","text":"See pal_cosmic details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"COSMIC Color Scales — scale_color_cosmic","text":"","code":"scale_color_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1, ... ) scale_colour_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1, ... ) scale_fill_cosmic( palette = c(\"hallmarks_light\", \"hallmarks_dark\", \"signature_substitutions\"), alpha = 1, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"COSMIC Color Scales — scale_color_cosmic","text":"palette Palette type. Currently three available options: \"signature_substitutions\" (6-color palette), \"hallmarks_light\" (10-color palette), \"hallmarks_dark\" (10-color palette). \"hallmarks_light\" option Hanahan Weinberg (2011). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"COSMIC Color Scales — scale_color_cosmic","text":"Joshua H. Cook | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_cosmic.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"COSMIC Color Scales — scale_color_cosmic","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_cosmic() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_cosmic()"},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":null,"dir":"Reference","previous_headings":"","what":"D3.js Color Scales — scale_color_d3","title":"D3.js Color Scales — scale_color_d3","text":"See pal_d3 details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"D3.js Color Scales — scale_color_d3","text":"","code":"scale_color_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1, ... ) scale_colour_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1, ... ) scale_fill_d3( palette = c(\"category10\", \"category20\", \"category20b\", \"category20c\"), alpha = 1, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"D3.js Color Scales — scale_color_d3","text":"palette Palette type. 4 available options: \"category10\" (10-color palette); \"category20\" (20-color palette); \"category20b\" (20-color palette); \"category20c\" (20-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"D3.js Color Scales — scale_color_d3","text":"https://github.com/d3/d3-3.x-api-reference/blob/master/Ordinal-Scales.md","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"D3.js Color Scales — scale_color_d3","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_d3.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"D3.js Color Scales — scale_color_d3","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_d3() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3() p1 + scale_color_d3(palette = \"category20\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3(palette = \"category20\") p1 + scale_color_d3(palette = \"category20b\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3(palette = \"category20b\") p1 + scale_color_d3(palette = \"category20c\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_d3(palette = \"category20c\")"},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":null,"dir":"Reference","previous_headings":"","what":"Flat UI Color Scales — scale_color_flatui","title":"Flat UI Color Scales — scale_color_flatui","text":"See pal_flatui details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Flat UI Color Scales — scale_color_flatui","text":"","code":"scale_color_flatui( palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1, ... ) scale_colour_flatui( palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1, ... ) scale_fill_flatui( palette = c(\"default\", \"flattastic\", \"aussie\"), alpha = 1, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Flat UI Color Scales — scale_color_flatui","text":"palette Palette type. Currently three available option: \"default\" (10-color palette). \"flattastic\" (12-color palette). \"aussie\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Flat UI Color Scales — scale_color_flatui","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_flatui.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Flat UI Color Scales — scale_color_flatui","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_flatui() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui() p1 + scale_color_flatui(palette = \"default\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui(palette = \"default\") p1 + scale_color_flatui(palette = \"flattastic\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui(palette = \"flattastic\") p1 + scale_color_flatui(palette = \"aussie\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_flatui(palette = \"aussie\")"},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":null,"dir":"Reference","previous_headings":"","what":"Frontiers Color Scales — scale_color_frontiers","title":"Frontiers Color Scales — scale_color_frontiers","text":"See pal_frontiers details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Frontiers Color Scales — scale_color_frontiers","text":"","code":"scale_color_frontiers(palette = c(\"default\"), alpha = 1, ...) scale_colour_frontiers(palette = c(\"default\"), alpha = 1, ...) scale_fill_frontiers(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Frontiers Color Scales — scale_color_frontiers","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Frontiers Color Scales — scale_color_frontiers","text":"Clara Jégousse ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_frontiers.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Frontiers Color Scales — scale_color_frontiers","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\"), legend.key = element_rect(fill = \"#2D2D2D\") ) + scale_color_frontiers() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\") ) + scale_fill_frontiers()"},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":null,"dir":"Reference","previous_headings":"","what":"The Futurama Color Scales — scale_color_futurama","title":"The Futurama Color Scales — scale_color_futurama","text":"See pal_futurama details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Futurama Color Scales — scale_color_futurama","text":"","code":"scale_color_futurama(palette = c(\"planetexpress\"), alpha = 1, ...) scale_colour_futurama(palette = c(\"planetexpress\"), alpha = 1, ...) scale_fill_futurama(palette = c(\"planetexpress\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Futurama Color Scales — scale_color_futurama","text":"palette Palette type. Currently one available option: \"planetexpress\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Futurama Color Scales — scale_color_futurama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_futurama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Futurama Color Scales — scale_color_futurama","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_futurama() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_futurama()"},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":null,"dir":"Reference","previous_headings":"","what":"The GSEA GenePattern Color Scales — scale_color_gsea","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"See pal_gsea details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"","code":"scale_color_gsea(palette = c(\"default\"), alpha = 1, reverse = FALSE, ...) scale_colour_gsea(palette = c(\"default\"), alpha = 1, reverse = FALSE, ...) scale_fill_gsea(palette = c(\"default\"), alpha = 1, reverse = FALSE, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"palette Palette type. Currently one available option: \"default\" (continuous palette 12 base colors). alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed? ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_gsea.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The GSEA GenePattern Color Scales — scale_color_gsea","text":"","code":"library(\"ggplot2\") library(\"reshape2\") data(\"mtcars\") cor <- cor(mtcars) cor_melt <- melt(cor) ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = \"black\", size = 0.3) + theme_bw() + scale_fill_gsea()"},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":null,"dir":"Reference","previous_headings":"","what":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"See pal_igv details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"","code":"scale_color_igv(palette = c(\"default\", \"alternating\"), alpha = 1, ...) scale_colour_igv(palette = c(\"default\", \"alternating\"), alpha = 1, ...) scale_fill_igv(palette = c(\"default\", \"alternating\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"palette Palette type. two available options: \"default\" (51-color palette); \"alternating\" (2-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_igv.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Integrative Genomics Viewer (IGV) Color Scales — scale_color_igv","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_igv() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_igv() p1 + scale_colour_manual( values = rep(pal_igv(\"alternating\")(2), times = 3) ) #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_manual( values = rep(pal_igv(\"alternating\")(2), times = 3) )"},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of the American Medical Association Color Scales — scale_color_jama","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"See pal_jama details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"","code":"scale_color_jama(palette = c(\"default\"), alpha = 1, ...) scale_colour_jama(palette = c(\"default\"), alpha = 1, ...) scale_fill_jama(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jama.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of the American Medical Association Color Scales — scale_color_jama","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_jama() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_jama()"},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":null,"dir":"Reference","previous_headings":"","what":"Journal of Clinical Oncology Color Scales — scale_color_jco","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"See pal_jco details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"","code":"scale_color_jco(palette = c(\"default\"), alpha = 1, ...) scale_colour_jco(palette = c(\"default\"), alpha = 1, ...) scale_fill_jco(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"palette Palette type. Currently one available option: \"default\" (10-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_jco.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Journal of Clinical Oncology Color Scales — scale_color_jco","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_jco() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_jco()"},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":null,"dir":"Reference","previous_headings":"","what":"Lancet Journal Color Scales — scale_color_lancet","title":"Lancet Journal Color Scales — scale_color_lancet","text":"See pal_lancet details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Lancet Journal Color Scales — scale_color_lancet","text":"","code":"scale_color_lancet(palette = c(\"lanonc\"), alpha = 1, ...) scale_colour_lancet(palette = c(\"lanonc\"), alpha = 1, ...) scale_fill_lancet(palette = c(\"lanonc\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Lancet Journal Color Scales — scale_color_lancet","text":"palette Palette type. Currently one available option: \"lanonc\" (9-color palette inspired Lancet Oncology). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Lancet Journal Color Scales — scale_color_lancet","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_lancet.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Lancet Journal Color Scales — scale_color_lancet","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_lancet() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_lancet()"},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":null,"dir":"Reference","previous_headings":"","what":"LocusZoom Color Scales — scale_color_locuszoom","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"See pal_locuszoom details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"","code":"scale_color_locuszoom(palette = c(\"default\"), alpha = 1, ...) scale_colour_locuszoom(palette = c(\"default\"), alpha = 1, ...) scale_fill_locuszoom(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"palette Palette type. Currently one available option: \"default\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_locuszoom.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"LocusZoom Color Scales — scale_color_locuszoom","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_locuszoom() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_locuszoom()"},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Color Palettes — scale_color_material","title":"Material Design Color Palettes — scale_color_material","text":"See pal_material details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Color Palettes — scale_color_material","text":"","code":"scale_color_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), alpha = 1, reverse = FALSE, ... ) scale_colour_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), alpha = 1, reverse = FALSE, ... ) scale_fill_material( palette = c(\"red\", \"pink\", \"purple\", \"deep-purple\", \"indigo\", \"blue\", \"light-blue\", \"cyan\", \"teal\", \"green\", \"light-green\", \"lime\", \"yellow\", \"amber\", \"orange\", \"deep-orange\", \"brown\", \"grey\", \"blue-grey\"), alpha = 1, reverse = FALSE, ... )"},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Color Palettes — scale_color_material","text":"palette Palette type. 19 available options: \"red\" \"pink\" \"purple\" \"deep-purple\" \"indigo\" \"blue\" \"light-blue\" \"cyan\" \"teal\" \"green\" \"light-green\" \"lime\" \"yellow\" \"amber\" \"orange\", \"deep-orange\" \"brown\" \"grey\" \"blue-grey\" See Material Design color system details. alpha Transparency level, real number (0, 1]. See alpha rgb details. reverse Logical. order colors reversed? ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Material Design Color Palettes — scale_color_material","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_material.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Color Palettes — scale_color_material","text":"","code":"library(\"ggplot2\") library(\"reshape2\") data(\"mtcars\") cor <- abs(cor(mtcars)) cor_melt <- melt(cor) ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = \"black\", size = 0.3) + theme_bw() + scale_fill_material(\"blue-grey\")"},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":null,"dir":"Reference","previous_headings":"","what":"NEJM Color Scales — scale_color_nejm","title":"NEJM Color Scales — scale_color_nejm","text":"See pal_nejm details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NEJM Color Scales — scale_color_nejm","text":"","code":"scale_color_nejm(palette = c(\"default\"), alpha = 1, ...) scale_colour_nejm(palette = c(\"default\"), alpha = 1, ...) scale_fill_nejm(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NEJM Color Scales — scale_color_nejm","text":"palette Palette type. Currently one available option: \"default\" (8-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NEJM Color Scales — scale_color_nejm","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_nejm.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NEJM Color Scales — scale_color_nejm","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_nejm() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_nejm()"},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":null,"dir":"Reference","previous_headings":"","what":"NPG Journal Color Scales — scale_color_npg","title":"NPG Journal Color Scales — scale_color_npg","text":"See pal_npg details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"NPG Journal Color Scales — scale_color_npg","text":"","code":"scale_color_npg(palette = c(\"nrc\"), alpha = 1, ...) scale_colour_npg(palette = c(\"nrc\"), alpha = 1, ...) scale_fill_npg(palette = c(\"nrc\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"NPG Journal Color Scales — scale_color_npg","text":"palette Palette type. Currently one available option: \"nrc\" (10-color palette inspired Nature Reviews Cancer). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"NPG Journal Color Scales — scale_color_npg","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_npg.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"NPG Journal Color Scales — scale_color_npg","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_npg() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_npg()"},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":null,"dir":"Reference","previous_headings":"","what":"Rick and Morty Color Scales — scale_color_rickandmorty","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"See pal_rickandmorty details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"","code":"scale_color_rickandmorty(palette = c(\"schwifty\"), alpha = 1, ...) scale_colour_rickandmorty(palette = c(\"schwifty\"), alpha = 1, ...) scale_fill_rickandmorty(palette = c(\"schwifty\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"palette Palette type. Currently one available option: \"schwifty\" (12-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_rickandmorty.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Rick and Morty Color Scales — scale_color_rickandmorty","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_rickandmorty() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_rickandmorty()"},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":null,"dir":"Reference","previous_headings":"","what":"The Simpsons Color Scales — scale_color_simpsons","title":"The Simpsons Color Scales — scale_color_simpsons","text":"See pal_simpsons details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The Simpsons Color Scales — scale_color_simpsons","text":"","code":"scale_color_simpsons(palette = c(\"springfield\"), alpha = 1, ...) scale_colour_simpsons(palette = c(\"springfield\"), alpha = 1, ...) scale_fill_simpsons(palette = c(\"springfield\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The Simpsons Color Scales — scale_color_simpsons","text":"palette Palette type. Currently one available option: \"springfield\" (16-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The Simpsons Color Scales — scale_color_simpsons","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_simpsons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The Simpsons Color Scales — scale_color_simpsons","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_simpsons() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_simpsons()"},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":null,"dir":"Reference","previous_headings":"","what":"Star Trek Color Scales — scale_color_startrek","title":"Star Trek Color Scales — scale_color_startrek","text":"See pal_startrek details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Star Trek Color Scales — scale_color_startrek","text":"","code":"scale_color_startrek(palette = c(\"uniform\"), alpha = 1, ...) scale_colour_startrek(palette = c(\"uniform\"), alpha = 1, ...) scale_fill_startrek(palette = c(\"uniform\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Star Trek Color Scales — scale_color_startrek","text":"palette Palette type. Currently one available option: \"uniform\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Star Trek Color Scales — scale_color_startrek","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_startrek.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Star Trek Color Scales — scale_color_startrek","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_startrek() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_startrek()"},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":null,"dir":"Reference","previous_headings":"","what":"Tron Legacy Color Scales — scale_color_tron","title":"Tron Legacy Color Scales — scale_color_tron","text":"See pal_tron details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Tron Legacy Color Scales — scale_color_tron","text":"","code":"scale_color_tron(palette = c(\"legacy\"), alpha = 1, ...) scale_colour_tron(palette = c(\"legacy\"), alpha = 1, ...) scale_fill_tron(palette = c(\"legacy\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Tron Legacy Color Scales — scale_color_tron","text":"palette Palette type. Currently one available option: \"legacy\" (7-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"Tron Legacy Color Scales — scale_color_tron","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_tron.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Tron Legacy Color Scales — scale_color_tron","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\"), legend.key = element_rect(fill = \"#2D2D2D\") ) + scale_color_tron() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_dark() + theme( panel.background = element_rect(fill = \"#2D2D2D\") ) + scale_fill_tron()"},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":null,"dir":"Reference","previous_headings":"","what":"The University of Chicago Color Scales — scale_color_uchicago","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"See pal_uchicago details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"","code":"scale_color_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1, ...) scale_colour_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1, ...) scale_fill_uchicago(palette = c(\"default\", \"light\", \"dark\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"palette Palette type. 3 available options: \"default\" (9-color palette); \"light\" (9-color light palette); \"dark\" (9-color dark palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"https://news.uchicago.edu/sites/default/files/attachments/_uchicago.identity.guidelines.pdf","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_uchicago.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"The University of Chicago Color Scales — scale_color_uchicago","text":"","code":"library(\"ggplot2\") data(\"diamonds\") p1 <- ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() p2 <- ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() p1 + scale_color_uchicago() #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_uchicago() p1 + scale_color_uchicago(palette = \"light\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_uchicago(palette = \"light\") p1 + scale_color_uchicago(palette = \"dark\") #> `geom_smooth()` using formula = 'y ~ x' p2 + scale_fill_uchicago(palette = \"dark\")"},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":null,"dir":"Reference","previous_headings":"","what":"UCSC Genome Browser Color Scales — scale_color_ucscgb","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"See pal_ucscgb details.","code":""},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"","code":"scale_color_ucscgb(palette = c(\"default\"), alpha = 1, ...) scale_colour_ucscgb(palette = c(\"default\"), alpha = 1, ...) scale_fill_ucscgb(palette = c(\"default\"), alpha = 1, ...)"},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"palette Palette type. Currently one available option: \"default\" (26-color palette). alpha Transparency level, real number (0, 1]. See alpha rgb details. ... additional parameters discrete_scale","code":""},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"author","dir":"Reference","previous_headings":"","what":"Author","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"Nan Xiao <@nanx.> | ","code":""},{"path":"https://nanx.me/ggsci/reference/scale_ucscgb.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"UCSC Genome Browser Color Scales — scale_color_ucscgb","text":"","code":"library(\"ggplot2\") data(\"diamonds\") ggplot( subset(diamonds, carat >= 2.2), aes(x = table, y = price, colour = cut) ) + geom_point(alpha = 0.7) + geom_smooth(method = \"loess\", alpha = 0.1, size = 1, span = 1) + theme_bw() + scale_color_ucscgb() #> `geom_smooth()` using formula = 'y ~ x' ggplot( subset(diamonds, carat > 2.2 & depth > 55 & depth < 70), aes(x = depth, fill = cut) ) + geom_histogram(colour = \"black\", binwidth = 1, position = \"dodge\") + theme_bw() + scale_fill_ucscgb()"},{"path":[]},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-3","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.3","text":"Detect ggplot2 version runtime determine argument scale_name needed discrete_scale() calls. ensures ggsci always works regardless ggplot2 version installed (thanks, @flyingicedragon, #29).","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-302","dir":"Changelog","previous_headings":"","what":"ggsci 3.0.2","title":"ggsci 3.0.2","text":"CRAN release: 2024-03-18","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-2","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.2","text":"Remove scale_name discrete_scale() calls argument deprecated ggplot2 3.5.0 (thanks, @DanChaltiel, #25).","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-301","dir":"Changelog","previous_headings":"","what":"ggsci 3.0.1","title":"ggsci 3.0.1","text":"CRAN release: 2024-03-02","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-1","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.1","text":"Expand FAQ vignette include solution customizing color selection ordering palette self-defined color scale functions (#23). Fix “lost braces” check notes r-devel using Unicode characters (a91faf1).","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-300","dir":"Changelog","previous_headings":"","what":"ggsci 3.0.0","title":"ggsci 3.0.0","text":"CRAN release: 2023-03-08","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-3-0-0","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 3.0.0","text":"scale_color_flatui() scale_fill_flatui() scale_color_frontiers() scale_fill_frontiers() (thanks, @clarajegousse, #14). scale_color_cosmic() scale_fill_cosmic()","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-3-0-0","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 3.0.0","text":"Use proper, three-component version number following Semantic Versioning. Reduce output figure size vignettes README.Rmd switching ragg PNG device using pngquant compression. simple solution interpolate color palettes data categories number colors discrete color scale. note using color scale consistently multiple ggplot2 plots setting global options (thanks, @DanChaltiel, #13). Replace size linewidth code examples ggplot2 >= 3.4.0. Replaced previous logo new hex sticker logo. Replaced previous CI/CD solutions GitHub Actions workflows. Fixed broken moved links function documentation vignettes. Removed LazyData field DESCRIPTION.","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-29","dir":"Changelog","previous_headings":"","what":"ggsci 2.9","title":"ggsci 2.9","text":"CRAN release: 2018-05-14","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-2-9","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 2.9","text":"New URL documentation website: https://nanx./ggsci/.","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-28","dir":"Changelog","previous_headings":"","what":"ggsci 2.8","title":"ggsci 2.8","text":"CRAN release: 2017-09-30","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"improvements-2-8","dir":"Changelog","previous_headings":"","what":"Improvements","title":"ggsci 2.8","text":"Use system font stack instead Google Fonts vignettes avoid pandoc SSL issue.","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-27","dir":"Changelog","previous_headings":"","what":"ggsci 2.7","title":"ggsci 2.7","text":"CRAN release: 2017-06-12","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-2-7","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 2.7","text":"Two new discrete color palettes: JAMA Tron Legacy One new collection continuous palettes 19 color options: Material Design","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-24","dir":"Changelog","previous_headings":"","what":"ggsci 2.4","title":"ggsci 2.4","text":"CRAN release: 2017-03-08","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-2-4","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 2.4","text":"Four new discrete color palettes: NEJM LocusZoom IGV Star Trek","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"ggsci-20","dir":"Changelog","previous_headings":"","what":"ggsci 2.0","title":"ggsci 2.0","text":"CRAN release: 2016-11-21","code":""},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-2-0","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 2.0","text":"Two new discrete color palettes: D3.js (v3) Futurama (Planet Express) first continuous color palette: GSEA GenePattern","code":""},{"path":[]},{"path":"https://nanx.me/ggsci/news/index.html","id":"new-features-1-0","dir":"Changelog","previous_headings":"","what":"New features","title":"ggsci 1.0","text":"Eight discrete color palettes (2016-04-01): NPG AAAS Lancet JCO UCSCGB UChicago Simpsons (Springfield) Rick Morty (Schwifty)","code":""}]
Xiao N (2024). ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'. -R package version 3.0.2, https://github.com/nanxstats/ggsci, https://nanx.me/ggsci/. +R package version 3.0.3, https://github.com/nanxstats/ggsci, https://nanx.me/ggsci/.
@Manual{, title = {ggsci: Scientific Journal and Sci-Fi Themed Color Palettes for 'ggplot2'}, author = {Nan Xiao}, year = {2024}, - note = {R package version 3.0.2, https://github.com/nanxstats/ggsci}, + note = {R package version 3.0.3, https://github.com/nanxstats/ggsci}, url = {https://nanx.me/ggsci/}, }
scale_name
discrete_scale()
CRAN release: 2024-03-18