Coder Social home page Coder Social logo

Comments (4)

xinyuejohn avatar xinyuejohn commented on August 20, 2024

Could you please also provide examples of using plot_and_annotate and plot_and_annotate_facets functions. It will help a lot. Thank you!

from statannotations.

trevismd avatar trevismd commented on August 20, 2024

Hello, @racng ,
Sorry for the late reply. The code for this exact example is not yet published (it's meant to be part of the second part of the tutorial). I just gave some indications in #89 about its usage, though.

Please let me know if you have any specific questions or trouble making it work, I'll gladly address that as the feature is not yet properly explained.

from statannotations.

trevismd avatar trevismd commented on August 20, 2024

(@xinyuejohn, for a quick reference, here is also an example of plot_and_annotate from the test)

def test_plot_and_annotate_without_test_name(self):
ax, annotations, annotator = Annotator.plot_and_annotate(
plot="boxplot", pairs=self.pairs_for_df,
plot_params=self.params_df,
configuration={
'test': 'Mann-Whitney',
'text_format': 'full',
'show_test_name': False
},
annotation_func='apply_test',
ax_op_after=[['set_xlabel', ['Group'], None]],
annotation_params={'num_comparisons': 'auto'})

from statannotations.

trevismd avatar trevismd commented on August 20, 2024

For anyone looking for this, until it is explained in greater details, the code for the image referenced:

annot = Annotator(None, pairs)

g = sns.FacetGrid(sf, col='State', height=12, sharey=False)
g.map_dataframe(annot.plot_and_annotate_facets, plot='boxplot',
                plot_params=plotting_parameters,
                configuration={"test": "Mann-Whitney"}, annotation_func="apply_test",
                ax_op_before=[["set_yscale", ["log"], {}]])
g.set_axis_labels("Technology Subcategory", "Goal")
g.fig.patch.set_alpha(1)
plt.show()

from statannotations.

Related Issues (20)

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.