Description Usage Arguments See Also Examples
Interactive dot plot.
Any numeric data can be plotted on the y-axis but the x-axis should be
discrete groups. Points will be labeled with the vector names, the
labels
parameter, or by index otherwise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
x |
a numeric vector of y values (if |
y |
optional numeric vector of y values; if missing, |
group |
optional vector of categories for coloring points |
cex |
point size in pixels |
xlim, ylim |
x- and y-limits |
xlab, ylab, main |
the x-, y-, and main labels |
names |
labels under each group of dots |
labels |
optional character vector or named list of character vectors
to label each point; if |
plotOpts |
list of additional plot options; see
|
digits |
integer indicating number of significant digits to use |
iplotPXG
from the qtlcharts package
Other iplots:
icorr()
,
icurve()
,
iscatter()
,
itree()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## basic usage with named vectors
idot(setNames(mtcars$mpg, rownames(mtcars)))
## using group and subgroup (a vector of logicals to color points)
with(mtcars, {
idot(gear, mpg, group = am + 1L, cex = 5, ylim = c(0, 40),
labels = rownames(mtcars))
})
## labels parameter supports additional formatting with html tags
with(ivolcano, {
idot(substr(rownames(ivolcano), 1, 1), logFC,
group = cut(pval, c(0, 0.05, .1, 1)), xlab = 'Treatment arm',
labels = list(
' ' = rownames(ivolcano),
'log2(FC)' = round(logFC, 2),
'<em>p</em>-value' =
format.pval(ivolcano$pval, digits = 2, eps = .05)))
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.