Data and code for the paper:
Kun Guo, Petr Pyšek, Mark van Kleunen, Nicole L. Kinlock, Magdalena Lučanová, Ilia J. Leitch, Simon Pierce, Wayne Dawson, Franz Essl, Holger Kreft, Bernd Lenzner, Jan Perg, Patrick Weigelt, Wen-Yong Guo. 2024. Plant invasion and naturalization are influenced by genome size, ecology and economic use globally. Nature Communications, 15, 1330.
How to use
- Download this repository as .zip file, unzip it to a folder, open WorldPlantInvasion.Rproj with Rstudio, then the R project will open.
- Open analyses.qmd, you will find all the code used to run SEMs. Do not run the models unless you are doing it on a server, and note that it takes days to finish.
- Open figures.qmd, you will find all the code to reproduce figures. Note that I used Adobe Illustrator to generate Fig.1, Fig.3 and Fig.S4. I also used the software to refine PDFs generated by R.