selectColors | R Documentation |
Returns a list containing colors and breaks, to
be used in image
plots, and the cut data and colors
for each datum. Note that the function is specifically used
for color scheme selection in the genomeBrowser
project.
selectColors(
x,
mn,
mx,
q = 0.1,
colf = grDevices::gray.colors,
reverse = FALSE,
n = 100,
plot = TRUE,
xlab = "score",
xlim,
heights = c(0.75, 0.25),
mai = c(0.75, 0.75, 0.1, 0.1),
ylim,
legendf,
...
)
x |
data vector |
mn |
minimal value to cut data at, if missing
|
mx |
maximal value to cut data at, if missing the quantile
|
q |
parameter |
colf |
color map function used to create a color gradient,
eg. |
reverse |
revert color order |
n |
number of colors, first argument to |
plot |
plot a legend, ie. a histogram of the full data and an
|
xlab |
x-axis label to use in legend plot |
xlim |
optional limits to x-axis |
heights |
relative heights of histogram and image plots |
mai |
|
ylim |
y-axis limits for histogram |
legendf |
legend plot function, called after the upper distribution plot, can be used to add a legend |
... |
further arguments to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.