![]() ![]() They’re not simply “red”, “green” and “blue”. Now what if there’s a color palette in ggplot that we would like to use in base R graphics? How can we figure out what those colors are? For example, let’s say we like ggplot’s red, green, and blue colors it used in the first plot above. Scale_color_gradient(low = "white", high = "red") Ggplot(iris, aes(x=Sepal.Length, y=Petal.Length, color=Sepal.Width)) + ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |