[英]Difference between scale_color_grey and scale_colour_grey in ggplot2
之間有什么區別scale_color_grey
和scale_colour_grey
在GGPLOT2?
Color
和Colour
在ggplot2
出現幾次。 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.