[英]Difference between scale_color_grey and scale_colour_grey in ggplot2
What is the Difference between scale_color_grey
and scale_colour_grey
in ggplot2? 之间有什么区别
scale_color_grey
和scale_colour_grey
在GGPLOT2?
Color
and Colour
appear several times in ggplot2
. Color
和Colour
在ggplot2
出现几次。 Is there a general rule for the difference between color and colour in ggplot2
? ggplot2
是否有颜色和颜色差异的一般规则?
There is no difference concerning the code. 代码没有区别。 British English vs. American English.
英国英语与美国英语。
library(ggplot2)
identical(scale_colour_grey, scale_color_grey)
#[1] TRUE
Both are calling the same function: 两者都调用相同的功能:
> 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.