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

Yong Xu, Fuquan Zhang, Guoqiang Wang, Hongbao Cao, Zaohuo Cheng, Yin Yao Shugart

Research output: Contribution to journalArticlepeer-review

1 Scopus citations


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.

Original languageEnglish (US)
Pages (from-to)1-3
Number of pages3
JournalSource Code for Biology and Medicine
StateAccepted/In press - Dec 3 2014
Externally publishedYes


  • Plot2groups
  • R package
  • Scatter point

ASJC Scopus subject areas

  • Information Systems
  • Computer Science Applications
  • Information Systems and Management
  • Health Informatics


Dive into the research topics of 'plot2groups: An R package to plot scatter points for two groups of values'. Together they form a unique fingerprint.

Cite this