dabestr
dabestr copied to clipboard
Add Error Bars (geom_pointrange) for multilevel designs
Substituted Swarmplot code to add function that plot points with add error bars (SEM or SD), intended for multilevel designs.
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.
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.