Draw a color key in the current device
drawColorKey(
x,
tick.marks = pretty_within(x),
labels = tick.marks,
main = NULL,
key.pos = c(0.925, 0.975, 0.05, 0.95),
pos = 2,
nlevels = length(tick.marks),
color.palette = viridisLite::viridis(nlevels),
tick.width = c(0.01, 0.0075),
add.box = TRUE,
na.col = NULL,
na.height = 0.1,
na.lab = "n/a",
...
)
A numeric vector with the data (it is used to extract the range).
A numeric vector indicating the levels to be included in the axis.
Character vector. When provided, specifies using different
labels for the tick marks than those provided by tick.marjks
.
Character scalar. Title of the key.
A numeric vector of length 4 with relative coordinates of the
key (as % of the plotting area, see par("usr")
)
Integer scalar. Position of the axis as in text
.
Integer scalar. Number of levels (colors) to include in the color key.
Color palette of length(nlevels)
.
Numeric vector of length 2 indicating the length of the inner and outer tick marks as percentage of the axis.
Logical scalar. When TRUE
adds a box around the key.
Character scalar. If specified, adds an aditional box indicating the NA color.
Numeric scalar. Relative height of the NA box. Only use if
na.col
is not NULL
.
Character scalar. Label of the NA
block. Only use if
na.col
is not NULL
.
Further arguments to be passed to rect
Invisible NULL
.
Other visualizations:
dgr()
,
diffusionMap()
,
grid_distribution()
,
hazard_rate()
,
plot_adopters()
,
plot_diffnet2()
,
plot_diffnet()
,
plot_infectsuscep()
,
plot_threshold()
,
rescale_vertex_igraph()