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.

devtools::install_github('smin95/smplot2', force = TRUE)

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 . If you find issues with the ‘smplot’ package, please pull-request on Github.


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.

About the author

I am Assistant Professor in Dept. Ophthalmology and Optometry at Wenzhou Medical University. On June 2021, I received my PhD at McGill University under the supervision of Dr. Robert F. Hess. My research is focused on amblyopia, neural plasticity and binocular vision. During spare time, I play the clarinet and develop R packages. More details, such as my publications, are on my website: https://www.smin95.com.