Dissemin is shutting down on January 1st, 2025

Published in

BioMed Central, Source Code for Biology and Medicine, 1(9), 2014

DOI: 10.1186/1751-0473-9-23

Links

Tools

Export citation

Search in Google Scholar

plot2groups: an R package to plot scatter points for two groups of values

Journal article published in 2014 by Yong Xu, Fuquan Zhang ORCID, Guoqiang Wang, Hongbao Cao, Zaohuo Cheng, Yin Yao Shugart
This paper is made freely available by the publisher.
This paper is made freely available by the publisher.

Full text: Download

Green circle
Preprint: archiving allowed
Green circle
Postprint: archiving allowed
Green circle
Published version: archiving allowed
Data provided by SHERPA/RoMEO

Abstract

Abstract Background Researchers usually employ bar graphs to show two groups of data, which can be easily manipulated to yield false impressions. To some extent, scatterplot can retain the real data values and the spread of the data. However, for groups of numeric data, scatterplot may cause over-plotting problems. As a result, many values all stack on top of each other. Results We recently implemented an R package, plot2groups, to plot scatter points for two groups values, jittering the adjacent points side by side to avoid overlapping in the plot. The functions simultaneously calculate a P value of two group t- or rank-test and incorporated the P value into the plot. Conclusions plot2groups is a simple and flexible software package which can be used to visualize two groups of values within the statistical programming environment R.