Description Usage Arguments Value Author(s) See Also Examples
FastUpset is based on upsetR and give a fast way to draw an Upset plot
1 2 3 4 5 6 7 8 9 10 11 12 | FastUpset(data,
nsets = NULL,nintersects =NA,
matrix.color = NULL,
main.bar.color = NULL,
mainbar.y.label = "Intersection Size",
sets.bar.color = NULL,
sets.x.label = "Set Size",
order.by = c("freq","degree")[1],
point.size = 3,line.size =1,
decreasing = c(T,F),
shade.color = mycolor[30], shade.alpha = 0.25,
text.scale = 2)
|
data |
a list of character vector like markers or genes.The names of list was recommanded to be set |
nsets |
If NULL,all combs was printed |
nintersects |
Number of intersections to plot. If set to NA, all intersections will be plotted |
matrix.color |
Color of the intersection points |
main.bar.color |
Color of the main bar plot |
mainbar.y.label |
The y-axis label of the intersection size bar plot |
sets.bar.color |
Color of set size bar plot |
sets.x.label |
The x-axis label of the set size bar plot |
order.by |
How the intersections in the matrix should be ordered by. Options include frequency (entered as "freq"), degree, or both in any order |
point.size |
Size of points in matrix plot |
line.size |
Width of lines in matrix plot |
decreasing |
How the variables in order.by should be ordered. "freq" is decreasing (greatest to least) and "degree" is increasing (least to greatest) |
shade.color |
Color of row shading in matrix |
shade.alpha |
Transparency of shading in matrix |
text.scale |
Numeric, value to scale the text sizes, applies to all axis labels, tick labels, and numbers above bar plot. Can be a universal scale, or a vector containing individual scales in the following format: c(intersection size title, intersection size tick labels, set size title, set size tick labels, set names, numbers above bars) |
"
an Upset Plot
Weibin Huang<654751191@qq.com>
upsetR::upset()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## make a data list
data <- list(
Cohort1 = sample(1:100,50),
Cohort2 = sample(1:120,60),
Cohort3 = sample(1:150,75)
)
## A simple setting
win.graph(width = 12,height = 8);
FastUpset(data,
mainbar.y.label = "Intersection Size",
sets.x.label = "Set Size",
order.by = c("freq","degree")[1])
## More complex setting
FastUpset(data,
nsets = NULL,nintersects =NA,
matrix.color = NULL,
main.bar.color = NULL,
mainbar.y.label = "Intersection Size",
sets.bar.color = NULL,
sets.x.label = "Set Size",
order.by = c("freq","degree")[1],
point.size = 3,line.size =1,
decreasing = c(T,F),
shade.color = mycolor[30], shade.alpha = 0.25,
text.scale = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.