dabestr icon indicating copy to clipboard operation
dabestr copied to clipboard

Add Error Bars (geom_pointrange) for multilevel designs

Open JonatanFernandez opened this issue 5 years ago • 2 comments

Substituted Swarmplot code to add function that plot points with add error bars (SEM or SD), intended for multilevel designs.

JonatanFernandez avatar Jul 24 '19 11:07 JonatanFernandez

The build has errored, because (I suspect, not having looked closely at the code) your modification hard-codes a column name. We will need to figure out an API/keyword to parse to the dabest object.

josesho avatar Jul 25 '19 01:07 josesho

Hello Joses!

Yes I noticed. It only works when calling the dataframe of the example I posted in the issue, because I'm directly calling for the columns 'AvrgPA' and 'SEM'. I saw that in order to code it nicely I would have to call them from the dasbest object.

I guess there are two ways to do this: 1- asking the user to input some column with information about the replicate as a factor, and use it to calculate a centrality and dispersion measure of the subject variable (such as mean and SEM). And/Or 2- ask the user to directly provide a summarized dataframe with both those measures.

JonatanFernandez avatar Jul 25 '19 03:07 JonatanFernandez