簡體   English   中英

ggplot2中scale_color_grey和scale_colour_grey之間的差異

[英]Difference between scale_color_grey and scale_colour_grey in ggplot2

之間有什么區別scale_color_greyscale_colour_grey在GGPLOT2?

ColorColourggplot2出現幾次。 ggplot2是否有顏色和顏色差異的一般規則?

代碼沒有區別。 英國英語與美國英語。

library(ggplot2)
identical(scale_colour_grey, scale_color_grey)
#[1] TRUE

兩者都調用相同的功能:

> scale_color_grey
function (..., start = 0.2, end = 0.8, na.value = "red") 
{
    discrete_scale("colour", "grey", grey_pal(start, end), na.value = na.value, 
        ...)
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM