Giter VIP home page Giter VIP logo

Comments (3)

samuel-marsh avatar samuel-marsh commented on June 18, 2024

Hi @levinhein

thanks for nice words! Just wanted to let you know Iā€™m currently on paternity leave and will get back to your issue when I return July 25th. Sorry for delay!

Thanks,
Sam

from sccustomize.

levinhein avatar levinhein commented on June 18, 2024

Hi @samuel-marsh! Thanks for the heads up! I'm a big fan of your computational works! And congrats, sending my wishes of best health and happiness for baby Evan! :)) (updated from Twitter ff you :)

from sccustomize.

samuel-marsh avatar samuel-marsh commented on June 18, 2024

Hi,

Sorry it's taken me so long to get back to this! So in short yes you could do this kind of visualization for genes or module scores but to me I don't think it's great representation of the data. When plotting those kind of things the distribution of scores or expression is critically important and that gets lost when you simply take medians and plot in this way. I think violin plots make a more informative plot for that reason.

That said if you want to try it out and make the plots you definitely can. You just need to pull data and create a by sample dataframe that also contains a grouping factor column. The actual plotting code is pretty straightforward:

library(ggplot2)
library(scCustomize) # for theme_ggprism_mod

plot <- ggplot(data = merged, mapping = aes(x = GROUP_NAME, y = FEATURE, fill = GROUP_NAME)) +
      geom_boxplot(fill = "white") +
      geom_dotplot(binaxis ='y', stackdir = 'center') +
      scale_fill_manual(values = colors_use) +
      theme_ggprism_mod() +
      ggtitle(plot_title) +
      ylab(y_axis_label) +
      xlab("")

Best,
Sam

from sccustomize.

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.