zoukankan      html  css  js  c++  java
  • R绘图体系ggplot2 基础篇:颜色搭配 (纠结症稳定剂)

    PALETTE LIST

    1. RColorBrewer palette

    使用RColorBrewer包配色
    安装并加载RColorBrewer包
    install.packages("RColorBrewer")
    library(RColorBrewer)
    display.brewer.all()

    2. palette 1 (主要作为自带色谱的补充)

    mycol <- c("#BD6263","#8EA325","#A9D179","#84CAC0","#F5AE6B","#BCB8D3","#4387B5")

    mycol2 = c( "#E64B35B2", "#4DBBD5B2" ,"#00A087B2", "#3C5488B2", "#F39B7FB2",
    "#8491B4B2", "#91D1C2B2", "#DC0000B2", "#7E6148B2")

    3.The palette with grey or black:

    cbPalette <- c("#999999", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2",
    "#D55E00", "#CC79A7")

    cbbPalette <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2",
    "#D55E00", "#CC79A7")

    4. 8 colors

    color_8 <- c("#2873B3","#2EBEBE","#74B346","#167153","#F1CC2F","#7D4444","#A14462","#8264CC")
    image

    5. Colors more than 12

    21 colors
    mycol21 <- c("#004529","#088247","#7CC767",
    "#223D6C","#5D90BA","#9ecae1",
    "#8c510a","#bf812d","#D8D155",
    "#b30000","#d73027","#fc9272",
    "#7A142C","#E0367A","#df65b0",
    "#4a1486","#6a51a3","#9e9ac8",
    "#252525","#737373","#bdbdbd")

    22 colors
    mycol22 <- c("#35212e","#562e3c","#a14462","#eb998b",
    "#fddbc8","#42465c","#356d67","#4c9568",
    "#7fb961","#b0d45d","#ffe788","#b20000",
    "#f06152","#7d4444","#9e6c69","#cca69c",
    "#5066a1","#76afda","#abddff","#dcf2ff",
    "#e8743c","#ffc556")

    22 color edited
    mycol22 <- c("#b0d45d","#7fb961","#4c9568","#356d67","#42465c","#5066a1",
    "#76afda","#abddff","#dcf2ff","#fddbc8","#ffe788","#ffc556",
    "#e8743c","#f06152","#b20000","#eb998b","#a14462","#cca69c",
    "#9e6c69","#7d4444","#562e3c","#35212e")

    6.最全颜色 (2128 palettes)

    一步搞定各种配色,选paletters 包就对了。
    https://github.com/EmilHvitfeldt/paletteer
    image
    image

  • 相关阅读:
    LeetCode#34 Search for a Range
    Multiplication algorithm
    LeetCode#31 Next Permutation
    Spring boot之Hello World
    spring boot 简介
    分布式-网络通信-线程
    分布式-网络通信-协议
    分布式-架构图
    9.leetcode70-climbing stairs
    8.Leetcode69 Sqrt(x) 笔记
  • 原文地址:https://www.cnblogs.com/drliu/p/14612004.html
Copyright © 2011-2022 走看看