powered by
Creates a custom color palette based on low, middle, and high color values
CustomPalette(low = "white", high = "red", mid = NULL, k = 50)
low color
high color
middle color. Optional.
number of steps (colors levels) to include between low and high values
A color palette for plotting
# NOT RUN { myPalette <- CustomPalette() myPalette # }
Run the code above in your browser using DataLab