Giter Club home page Giter Club logo

sigstar's People

Contributors

raacampbell avatar shadowfox87 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sigstar's Issues

Two significance lines for two y-values for one x-values

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?

Adding significance lines comparing several bars/points with one

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
samplegraph_sigstar

fix findMinY to work better with line objects

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)

Deal in a better way with grouped data

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.

Or Gadish suggestions from the FEX

  • AX as input so that you can choose which axis handle to apply sigstar to.
  • Handle Output to cell array. (why?)
  • The ability to increase YLim as necessary to make space for the stars/n.s. above the objects.
  • Added increased font size to stars/n.s. as per Wei Chen below. (can probably do with new tags)

Give user option to disable sig lines when p is n.s.

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?

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.