Skip to content

ACCLAB/DABEST-Matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ContrastPlot_MATLAB

About

A MATLAB library to generate scatter plots with bootstrapped confidence intervals and effect sizes based on means.

Installation

The library can be installed by following the github instructions: https://help.github.com/articles/cloning-a-repository/

Tutorial

Data format

Data should be in the csv file format and contain two columns with the headers: Identifiers and Values.

Identifiers are the labels of each data point, and Values are the data points (see the example below).

Note: All the sample data used in this tutorial are taken from S. Champely's anscombe2 dataset, and can be found in ContrastPlot_MATLAB/SampleData/.

Depending on the number of groups the data contain, the main function contrastplot produces various plots:

1. Two groups

If the data have two different groups, contrastplot('TwoGroups_sample.csv') generates a two groups plot.

2. Paired

Running contrastplot('TwoGroups_sample.csv','Paired') generates a paired plot with the two groups data.

3. Multiple groups

If the number of groups is an even number, a multiple groups plot will be automatically generated by contrastplot('MultipleGroups_sample.csv') command.

4. Shared control

If there are more than two groups in the data, contrastplot('MultipleGroups_sample.csv') generates a shared control plot.

5. Merged groups

To combine two groups of data and compare to a third group, run contrastplot('MultipleGroups_sample.csv','mergeGroups').

6. Multiple merged groups

For the data that contain more than three groups -and a number that is divisible by 3, contrastplot('MultipleGroups_sample.csv','mergeGroups') generates a multiple merged groups plot.

7. Merged shared control

If the data contain more than three groups, contrastplot('MultipleGroups_sample.csv','mergeGroups') automatically generates a second plot in which all the groups are compared to the merged shared control.

About

MATLAB package to generate contrast plots

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •