Data Analysis and Visualization in R Using smplot
Last Updated: 2022-11-13
Welcome!
This book (https://smin95.com/dataviz0) guides the reader to be familiar with R, a programming language, for data visualization. It also introduces the R package smplot, which aims to make the process of data visualization simple. This book was created entirely using RMarkdown for reproducibility.
Major updates
On November 12, 2022 smplot2 has been created separately from smplot because most visualization functions (from Ch2-4) have been entirely redesigned for more flexibility as well as the fact that new ones have been created.
install.packages("devtools")
::install_github('smin95/smplot2', force = TRUE) devtools
When you decide to load smplot2 into your console in RStudio, make sure you have already detached (unloaded) smplot since names of the functions are identical.
detach('package:smplot, unload = T)
You could also delete smplot to entirely prevent its functions from masking those in smplot2 in the global environment.
This website (https://smin95.com/dataviz0) is a guide for smplot only. The original websites (https://smin95.com/dataviz AND smin95.github.io/dataviz) are strictly for smplot2.
I recommend that users adapt to smplot2 as it will offer much more freedom for visualization and less technical issues. Changes will be made as quickly as possible to avoid trouble for users. I apologize for any inconvenience that I may have caused.
The primary reason why I have made these changes is because I have recently learned programming methods that I should have used 18 months ago when creating the package in the first place.
Please cite this paper when smplot is used
Seung Hyun Min, Jiawei Zhou. smplot: An R Package for Easy and Elegant Data Visualization (2021). Frontiers in Genetics, 12:802894.
For R and ggplot2 experts
Please read Chapter 4, which is a manual for smplot.
Issues and contact
If you spot any mistakes in this online book, please pull-request on Github or email me seung.min@mail.mcgill.ca. If you find issues with the ‘smplot’ package, please pull-request on Github.
License
smplot is under the MIT license. This tutorial is licensed under a Creative Commons Attribution 4.0 International License. I am the sole creator of smplot.