GithubHelp home page GithubHelp logo

nicegroupplot's Introduction

niceGroupPlot

Background

This plotting function is useful for people who tend to run experiments with two groups of participants and multiple conditions. I was going to call it GroupByConditionPlot, but niceGroupPlot has a better ring to it. In reality, it is just a function to implement a split violin plot using violinPlot.m from the great Ann Urai (https://anneurai.net/2016/06/13/prettier-plots-in-matlab/), and also notBoxPlot.m by the ever brilliant Rob Campbell (https://uk.mathworks.com/matlabcentral/fileexchange/26508-notboxplot). Split violin plot smooths a histogram of the data to show the distrubution of the datapoints. notBoxPlot plots the mean, 95% SEM and SD to show summary statistics. You may also choose to scatter the raw data on top of this.

Both Ann and Rob selflessly shared their plotting code for others to use and edit; I just mashed it together into a function with inputs for all the things I usually want to change or add to a plot when running clinical studies with two groups. Feel free to use, take, edit and make your own!

I advise checking out plotting_examples.m first for a tutorial on how the function works.

nicegroupplot's People

Contributors

beckylawson avatar

Watchers

 avatar  avatar  avatar

Forkers

amanirad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.