An example Analysis of the jigsaw puzzle after drawing the Wayne Diagram in R language
In this issue, the editor will bring you an example analysis of the puzzle after drawing Wayne diagram in R language. the article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
The picture to be imitated today comes from the paper Core gut microbial communities are maintained by beneficial interactions and strain variability in fish. The journal is Nature microbiology.
Image.png
The repeated picture is the Wayne diagram in Figure2, and then put the two Wayne diagrams together.
The most commonly used package for drawing Wayne pictures in R language is VennDiagram, but today's content involves puzzles. I don't know how to do puzzles after drawing with VennDiagram. So using another package, ggvenn, today, because it's a gg series, puzzles are relatively easy to implement. I have recorded a video to introduce this package before.
You need to install devtools::install_github ("yanlinlin82/ggvenn") for the first time.
The input data can be a list or a data box. Today, the input data is in the form of a list.
Read in data df1