ggplot2 中 scale_color_grey 和 scale_colour_grey 的区别
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,
...)
}
有什么区别
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,
...)
}