Gplots Venn
- Gplots Introduction. This repo is to keep the gplots package alive. I don't plan to develop new features, but if you'll send pull requests I'm willing to review them. You can see the most recent changes to the package in the NEWS.md file. Code of conduct. Please note that this project is released with a Contributor Code of Conduct.
- Author radiaj Posted on June 21, 2016 Categories gplots, R, VennDiagram Tags GeneLists, Genes, R, VennDiagram 1 Comment on Working with Venn Diagrams Search Recent Posts.
- As mentioned, following is an easier alternative (especially when you have 2 groups) with the venn function from the gplots library. This only needs a list containing either the row-numbers or the gene-names of the DEGs which is easier (but offers less adjustability to make it prettier).
- Various R programming tools for plotting data, including: - calculating and plotting locally smoothed summary function as ('bandplot', 'wapply'), - enhanced versions.
Gplots Venn
Various R Programming Tools for Plotting Data
The gplots lib in R contains a venn function.?venn ADD REPLY. link written 3.3 years ago by Benn ♦ 8.0k. I guess you could easily write an Rscript using the VennDiagram package for this purpose. ADD REPLY. link written 3.3 years ago by WouterDeCoster ♦ 44k.
Various R programming tools for plotting data, including:- calculating and plotting locally smoothed summary function as('bandplot', 'wapply'),- enhanced versions of standard plots ('barplot2', 'boxplot2','heatmap.2', 'smartlegend'),- manipulating colors ('col2hex', 'colorpanel', 'redgreen','greenred', 'bluered', 'redblue', 'rich.colors'),- calculating and plotting two-dimensional data summaries ('ci2d','hist2d'),- enhanced regression diagnostic plots ('lmplot2', 'residplot'),- formula-enabled interface to 'stats::lowess' function ('lowess'),- displaying textual data in plots ('textplot', 'sinkplot'),- plotting a matrix where each cell contains a dot whose sizereflects the relative magnitude of the elements ('balloonplot'),- plotting 'Venn' diagrams ('venn'),- displaying Open-Office style plots ('ooplot'),- plotting multiple data on same region, with separate axes('overplot'),- plotting means and confidence intervals ('plotCI', 'plotmeans'),- spacing points in an x-y plot so they don't overlap ('space').
Readme
Introduction
This repo is to keep the gplots package alive. I don't plan to develop new features, but if you'll send pull requests I'm willing to review them.
Latest news
You can see the most recent changes to the package in the NEWS.md file
Code of conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Gplots Venn Data Frame
Installation
To install the stable version on CRAN:
And then you may load the package using:
Usage
TODO
Contact
You are welcome to:
- Ask questions on: https://stackoverflow.com/questions/tagged/gplots
- Submit suggestions and bug-reports at: https://github.com/talgalili/gplots/issues
- Send a pull request on: https://github.com/talgalili/gplots/
- Compose a friendly e-mail to: tal.galili@gmail.com
Functions in gplots
Name | Description | |
barplot2 | Enhanced Bar Plots | |
bandplot | Plot x-y Points with Locally Smoothed Mean and Standard Deviation | |
balloonplot | Plot a graphical matrix where each cell contains a dot whose size reflects the relative magnitude of the corresponding component. | |
angleAxis | Add a Axis to a Plot with Rotated Labels | |
colorpanel | Generate a smoothly varying set of colors | |
col2hex | Convert color names to hex RGB strings | |
boxplot2 | Produce a Boxplot Annotated with the Number of Observations | |
gplots-defunct | Defunct functions | |
gplots-deprecated | Deprecated functions | |
ci2d | Create 2-dimensional empirical confidence regions | |
plotCI | Plot Error Bars and Confidence Intervals | |
plotmeans | Plot Group Means and Confidence Intervals | |
reorder.factor | Reorder the Levels of a Factor | |
ooplot.default | Create an OpenOffice style plot | |
overplot | Plot multiple variables on the same region, with appropriate axes | |
qqnorm.aov | Makes a half or full normal plot for the effects from an aov model | |
textplot | Display text information in a graphics plot. | |
rtPCR | Teratogenesis rtPCR data | |
rich.colors | Rich Color Palettes | |
space | Space points in an x-y plot so they don't overlap. | |
heatmap.2 | Enhanced Heat Map | |
lmplot2 | Plots to assess the goodness of fit for the linear model objects | |
hist2d | Compute and Plot a 2-Dimensional Histogram | |
residplot | Undocumented functions | |
venn | Plot a Venn diagram | |
wapply | Compute the Value of a Function Over a Local Region Of An X-Y Plot | |
lowess | Scatter Plot Smoothing | |
sinkplot | Send textual R output to a graphics device | |
No Results! |
Vignettes of gplots
Name | ||
venn.Rnw | ||
No Results! |
Last month downloads
Details
VignetteBuilder | knitr |
Date | 2020-11-28 |
License | GPL-2 |
URL | https://github.com/talgalili/gplots |
BugReports | https://github.com/talgalili/gplots/issues |
NeedsCompilation | no |
Packaged | 2020-11-28 13:04:00 UTC; talgalili |
Repository | CRAN |
Date/Publication | 2020-11-28 13:50:02 UTC |
imports | caTools , gtools , KernSmooth , stats |
suggests | grid , knitr , MASS |
depends | R (>= 3.0) |
Contributors | Steffen Moeller, Bill Venables, Ben Bolker, Thomas Lumley, Marc Schwartz, Lodewijk Bonebakker, Andy Liaw, Arni Magnusson, Robert Gentleman, Martin Maechler, Gregory R. Warnes, Wolfgang Huber |
Include our badge in your README
[![Rdoc](http://www.rdocumentation.org/badges/version/gplots)](http://www.rdocumentation.org/packages/gplots)
Did you know you can produce Venn diagrams in R?
Yeah, I wasn't surprised either. It's easy enough to assemble many other kinds of graphs and data visualizations in R, so why not Venn diagrams?
I tend to feel ambivalent about Venns (see also: Euler diagrams). They have many of the same problems as pie charts: they abstract data to the point of near-meaninglessness, they're completely inappropriate for situations when some values are much smaller or larger than the rest, and they can magnify the importance of otherwise trivial details. That being said, they're still popular and can express simple conclusions easily. If all I want to say is 'these groups share n components' then it's hard to do better than a Venn diagram without going into more detail.
So how can we assemble these crazy things? One option is venn() in gplots - see this vignette for some examples. It's described here.
We can use two groups:
That's not terribly interesting, so here's four sets:
venn() will take a data frame as long as the values are booleans, so you can turn a data frame like this
Ab Cd Ef
1 TRUE FALSE FALSE
2 TRUE FALSE FALSE
3 TRUE TRUE FALSE
4 TRUE FALSE TRUE
5 TRUE FALSE TRUE
6 TRUE TRUE FALSE
...
Into this:
gplots provides just one of the available options. There's also the VennDiagram package and the venneuler package. The former of those packages offers extensive customization but doesn't handle the intersection counts itself. It may work well if the counts are already available. Here's an example:
Plots Venn
The latter of those two packages, venneuler, makes the whole process so criminally easy that you could safely ignore gplots altogether. That is, unless you want the actual counts of each group plotted as above. That may be a job for post-R vector image editing but why do it by hand when you can automate it?
November 2015 update:
There's also the Vennerable package. It's described here and doesn't appear to be in CRAN but can be downloaded from R-Forge. Vennerable can handle all kinds of exotic n-group Venns, with a maximum n of nine.
Vennerable depends on graph, a package available through Bioconductor.
I haven't used it yet but will likely do so soon. Example output will show up here (further update: Vennerable also needs RBGL from Bioconductor. I ran into some unresolvable dependency issues while testing Vennerable so it will have to wait until I really need a nine group diagram, but that may indicate larger problems.)
February 2016 update:
Vennerableis now on Github. You'll need the devtools package to install it that way.
Vennerable has some neat features but lacks useful documentation. Here's a quick example.
Using the example data provided with the package, and cutting it down to just three groups:
and that gives you the basic diagram.
If you use the full set of four groups, Vennerable defaults to overlapping rectangles, like this.
The type argument can be set to 'circles', 'squares', 'triangles', or 'AWFE' (that is, the kind of plot favored by British statistician AWF Edwards).
Give Vennerable a try if you don't mind figuring out all the other options on your own or waiting for me to post about it again.