Giter VIP home page Giter VIP logo

Comments (5)

Alanocallaghan avatar Alanocallaghan commented on August 11, 2024

Try this on master:

library("scater")
example_sce <- mockSCE()
example_sce <- logNormCounts(example_sce)
colData(example_sce) <- cbind(colData(example_sce), perCellQCMetrics(example_sce))
plotColData(example_sce, y = "detected", x = "Cell_Cycle", colour_by = "Mutation_Status", point_fun = function(...) list())

from scater.

lambdamoses avatar lambdamoses commented on August 11, 2024

Hi, thanks for fixing this. But it would still be nice to be able to fill the violins with colors to indicate clusters, as in Seurat. However, there's no fill_by argument. Also, I feel like point_fun = function(...) list() is kind of cumbersome and confusing to users who aren't very fluent in R. It would be nice to have an argument like plot_points = FALSE.

from scater.

Alanocallaghan avatar Alanocallaghan commented on August 11, 2024

I don't know how common it is for people to not want points, and point_fun is a more flexible option than plot_points, so I'm going to leave it as is for now.

I'm slightly dubious about fill_by here as in the case that it's not the same as x you then have to start specifying positions and complexity may balloon slightly

from scater.

kikegoni avatar kikegoni commented on August 11, 2024

Hey,

First thanks a lot for developing and maintaining this package.

I agree that the fill_by argument would be also very good in these cases where you don't want to plot each individual point but just want to see the shape. I have seen that you have it in your code. The problem is that if I combine both options fill_by and point_fun = function(...) list() I have not been able to modify the colors of the violin plots and all my violins have the same color.

plotColData(all_sce, x="ident",y="sum" ,point_fun = function(...) list(), fill_by = "ident")

Is there an option to just plot the shape of the violin and fill it according to your particular interest?

Thanks for any help you might be able to provide,

Kike

from scater.

Alanocallaghan avatar Alanocallaghan commented on August 11, 2024

I'm going to open a separate issue (#175) as this is unrelated to the original topic.

Please submit any suggestions or feedback there instead

from scater.

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.