smplot: An R Package for Easy and Elegant Data Visualization
R, a programming language, is an attractive tool for data visualization because it is free and open source. However, learning R can be intimidating and cumbersome for many. In this report, we introduce an R package called "smplot" for easy and elegant data visualization. The R package &quo...
Saved in:
Published in: | Frontiers in genetics Vol. 12; p. 802894 |
---|---|
Main Authors: | , |
Format: | Journal Article |
Language: | English |
Published: |
Switzerland
Frontiers Media S.A
15-12-2021
|
Subjects: | |
Online Access: | Get full text |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Summary: | R, a programming language, is an attractive tool for data visualization because it is free and open source. However, learning R can be intimidating and cumbersome for many. In this report, we introduce an R package called "smplot" for easy and elegant data visualization. The R package "smplot" generates graphs with defaults that are visually pleasing and informative. Although it requires basic knowledge of R and ggplot2, it significantly simplifies the process of plotting a bar graph, a violin plot, a correlation plot, a slope chart, a Bland-Altman plot and a raincloud plot. The aesthetics of the plots generated from the package are elegant, highly customisable and adhere to important practices of data visualization. The functions from smplot can be used in a modular fashion, thereby allowing the user to further customise the aesthetics. The
package is open source under the MIT license and available on Github (https://github.com/smin95/smplot), where updates will be posted. All the example figures in this report are reproducible and the codes and data are provided for the reader in a separate online guide (https://smin95.github.io/dataviz/). |
---|---|
Bibliography: | ObjectType-Article-1 SourceType-Scholarly Journals-1 ObjectType-Feature-2 content type line 23 This article was submitted to Computational Genomics, a section of the journal Frontiers in Genetics Edited by: Guangchuang Yu, Southern Medical University, China Reviewed by: Zongcheng Li, Fifth Medical Center of the PLA General Hospital, China Binbin Wang, National Research Institute for Family Planning (CAS), China |
ISSN: | 1664-8021 1664-8021 |
DOI: | 10.3389/fgene.2021.802894 |