Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seqfast
    Member
    • Aug 2008
    • 16

    #1

    cummeRbund / ggplot2

    Thank you Loyal and team for cummeRbund, it's a great way to get a good feel for cuffdiff data and perform some nice analyses.

    i'm having a little bit of a hard time adjusting certain aspects of the plots, which i believe based on the documentation should be possible as they are all ggplot2 objects. i am not an expert in R, so my questions might be naive.

    given a scatter plot (as a matrix) from:

    scatterM <- csScatterMatrix(genes(cuff))
    scatterM

    I would like to adjust what in ggplot2 is alpha, or transparency; i'd like to leave the density plot portion the same (where same conditions are compared).

    i've tried a few ggplot2 things, but no luck. i've used ggplot2 in the past with success, but not here, e.g.

    scatterM + (geom_point(alpha=1/20))
    Error: geom_point requires the following missing aesthetics: x, y

    thanks!

    -sf
  • griffon42
    Member
    • Jan 2009
    • 23

    #2
    Any progress?

    Has anyone figured this out? I'm struggling as well. In ggplot2, it seems like the issue is an inability to change the "default" layer of the plot, on account of the "data" being fed from the method, rather than a standard, named data frame.

    It would be great to get a solution to this.

    Thanks.

    Comment

    • krespim
      Member
      • Jul 2012
      • 49

      #3
      I am not sure if I understood your question correctly, but have you tried to change the theme of the ggplot session?


      It should, in principle, set all the visual properties (or change) in a particular session, that is for all the plots generated after the theme is set. My guess is that overrides the cummeRbund call but I am not sure.

      Comment

      • TPH
        Member
        • Jan 2016
        • 19

        #4
        Hi,
        I am getting same kind of an error while trying to execute following command.
        csVolcanoMatrix(genes(cuff_data))

        Error: geom_vline requires the following missing aesthetics: xintercept

        I tried changing ggplot theme, but it didn't work.
        Could anyone please help?

        TPH

        Comment

        • AmitChaurasia
          Member
          • Jan 2013
          • 13

          #5
          Hi here I am getting same error.

          geom_vline requires the following missing aesthetics: xintercept

          could anyone help... since I tried all aspects of installing reinstalling the things.

          Thanks,

          Originally posted by TPH View Post
          Hi,
          I am getting same kind of an error while trying to execute following command.
          csVolcanoMatrix(genes(cuff_data))

          Error: geom_vline requires the following missing aesthetics: xintercept

          I tried changing ggplot theme, but it didn't work.
          Could anyone please help?

          TPH

          Comment

          • Thias
            Member
            • Mar 2013
            • 45

            #6
            I unfortunately can't give you a ready-to-use solution, because I never worked with cummeRbund, but I have quite some experience with the underlying ggplot2 and can shed some light on the error message itself.

            aesthetics in ggplot2 are something completely different than the theme. A theme defines the plot's appearence (font sizes, background color, spacing and such), the aesthetics define which data is represented in what way: What is shown on the x-axis, the y-axis and are there categorical variables represented as different colors, sizes, shapes of the dots or patterns of the lines and such.

            In your case, geom_vline() is a function to draw a vertical line in the plot, however it lacks the information where this line should be drawn (intersect the x-axis). I guess that is supposed to appear at the median FPKM value or such and that this computation fails, so you have to provide this value manually via the pass-through argument mapping.

            Code:
            csVolcanoMatrix(cuffdata,mapping=aes(xintercept=2))
            Also make sure that you provide the correct data type. The function requests objects of the classes CuffData, CuffFeatureSet, or CuffGeneSet. You can check that with the class function

            Code:
            class(cuffdata)
            class(genes(cuffdata))
            I don't know that the genes() function is and from which package, but it might e.g. return a data.frame, which is no longer suitable.

            Hope that helps a bit...
            Last edited by Thias; 08-12-2016, 02:13 AM.

            Comment

            • AmitChaurasia
              Member
              • Jan 2013
              • 13

              #7
              Thank You Thias... I hope this should work. I believe that this could be an issue for different version of R.

              Best,
              Amit

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, Yesterday, 11:13 AM
              0 responses
              16 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, Yesterday, 10:48 AM
              0 responses
              16 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              35 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              42 views
              0 reactions
              Last Post SEQadmin2  
              Working...