raacampbell / sigstar Goto Github PK
View Code? Open in Web Editor NEWadd significance stars to MATLAB plots
License: GNU Lesser General Public License v3.0
add significance stars to MATLAB plots
License: GNU Lesser General Public License v3.0
Currently, the spacing between comparison lines is 0.05*myRange(ylim). However, when there is comparisons within the same group, a value in that group may have a standard deviation bar that's high and this can sometimes overlap with the p-value comparison lines.
An example of what I mean by this is shown here: https://imgur.com/KmDEaca
Hi,
I was wondering how I can simply disable the drawing of the comparison lines when the p-value is not significant? I changed 'n.s.' to ''. I just don't want bars when the p-value is >0.05.
if (p>0.05)
return
end
Something like the above is what I need. I tried to insert this in the makeSignificanceBar() function but it seems that it needs to be inserted before the call to makeSignificanceBar() in the for loop. I did this, but ended up getting an error.
Any suggestions?
Hi there, your function can so far only add significance labels between two individual points as I understand it. I now want to add significance of several points together compared to one, e.g. in the graph below the last four red points are significant to the first one, but I don't want to draw four individual significance lines as this makes the figure too crowded. Do you have any suggestions on how to solve this?
Thanks and best!
Anne
The significance bar only extends between the X values associated with the data as defined in the input arguments. For grouped data, like grouped bar charts and notBoxPlot we have points that extend outside of this range by a certain amount. These are ignored by sigStar. The demo function in 3cbc025 shows this.
Address the following issue from the FEX:
Had some issue using with line objects. I replaced findMinY with:
function Y=findMinY_New(x)
oldXLim = get(gca,'XLim');
oldYLim = get(gca,'YLim');
axis tight
set(gca,'xlim',x) %Matlab automatically re-tightens y-axis
yLim = get(gca,'YLim'); %Now have max y value of all elements within range.
Y = max(yLim);
axis normal
set(gca,'XLim',oldXLim,'YLim',oldYLim)
Since I have two graphs and hence two y-values corresponding to one x-value I can't use your function to display two significane lines between two points with the same x-value.
Do you have any advice on how to solve this?
Example in doc text of function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.