美文网首页
R ggplot 颜色设置

R ggplot 颜色设置

作者: 果蝇的小翅膀 | 来源:发表于2024-07-14 11:21 被阅读0次

    1、使用R包 wesanderson

    网站:GitHub - karthik/wesanderson: A Wes Anderson color palette for R

    install.packages("wesanderson")
    
    devtools::install_github("karthik/wesanderson")
    
    

    2、示例情况

    library("wesanderson")
    
    # See all palettes
    names(wes_palettes)
    #>  [1] "BottleRocket1"  "BottleRocket2"  "Rushmore1"      "Rushmore"      
    #>  [5] "Royal1"         "Royal2"         "Zissou1"        "Darjeeling1"   
    #>  [9] "Darjeeling2"    "Chevalier1"     "FantasticFox1"  "Moonrise1"     
    #> [13] "Moonrise2"      "Moonrise3"      "Cavalcanti1"    "GrandBudapest1"
    #> [17] "GrandBudapest2" "IsleofDogs1"    "IsleofDogs2"    "FrenchDispatch"
    #> [21] "AsteroidCity1"  "AsteroidCity2"  "AsteroidCity3"
    
    image.png image.png image.png image.png image.png image.png image.png image.png image.png
    image.png

    相关文章

      网友评论

          本文标题:R ggplot 颜色设置

          本文链接:https://www.haomeiwen.com/subject/ancchjtx.html