Depict a numeric matrix or list utilizing the underlying distribution quantiles of one dimension in a color encoded fashion (add to an existing plot).
singlefusionplot(x, y, fromto = c(0.05, 0.95), colpal = "standardheat",
simulate = FALSE, daltonize = FALSE, cvd = "p", nrcol = 25,
outer.col = "grey", rev = FALSE, alpha = NULL,
quartiles.col = c("grey", "black", "grey"), add.quartiles = TRUE)
a numeric vector.
a numeric vector.
a numeric vector containing the range of quantiles (between 0 and 1) to be plotted.
a character vector containing R built-in color names or a name of a LSD
colorpalette as a character string (see disco() or disco
).
logical: if TRUE
(FALSE
by default), a converted colorpalette is used to simulate dichromat vision according to http://www.daltonize.org (see daltonize
).
logical: if TRUE
(FALSE
by default), a converted colorpalette is used to enhance dichromat vision according to http://www.daltonize.org (see daltonize
).
character string implying the type of color vision deficiency ("p" for protanope, "d" for deuteranope or "t" for tritanope).
a non-negative integer specifying the number of colors to be used (defaults to 25, if not specified).
R built-in color to be used for outlier lines (lines outside of 'fromto').
logical: if TRUE
(FALSE
by default), a reversed colorpalette is used.
alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default).
a character vector containing three R built-in colors for quartile lines (c('0.25','0.5','0.75')).
logical: if TRUE
(by default), lines are plotted corresponding to the quartiles.
# NOT RUN {
x = 1:1000/300
y = rnorm(1000)+sin(2*x)*3
emptyplot(xlim = range(x),ylim = range(y))
singlefusionplot(x,y,colpal = "ylgnbu")
axis(1)
axis(2)
box()
# }
Run the code above in your browser using DataLab