Closed nyj123 closed 3 years ago
The variable group_colors
in this code is assumed to define a color for each group. To me it seems that in your code you are missing the line in which group_colors
is defined, such as group_colors <- c("red", "blue")
.
Seems that the original line was:
group_colors <- paste(brewer.pal(3, "Set1")[1:2], "60")
What this does is: get 2 colors from the "Set"
color palette (brewer.pal(3, "Set1")[1, 2]
) and append the value "60"
to these (brewer.pal
returns colors in html notion, e.g. "#ffceff"
, by adding the value 60 to this the color becomes slightly transparent). Use display.brewer.all()
to show all available colors defined by the RColorBrewer
R package.
Please have also a look at the help of the RColorBrewer
R package for more information.
I'm closing this issue now. Feel free to reopen if needed.
` library(xcms)