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.
- R package
- Scatter point
ASJC Scopus subject areas
- Information Systems
- Computer Science Applications
- Information Systems and Management
- Health Informatics