SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
Galaxy -> cummeRbund How? ekimmike Bioinformatics 5 07-25-2019 06:03 AM
Some cummeRbund questions rvaerle RNA Sequencing 61 02-25-2015 05:01 AM
How to name samples in CummeRbund? veber Bioinformatics 4 12-08-2014 05:10 AM
CummeRbund error newbietonextgen Bioinformatics 1 06-15-2012 12:24 PM
Stats on Posts/Day (or...geeking out with ggplot2) ECO Site Announcements 1 07-06-2010 12:31 PM

Reply
 
Thread Tools
Old 12-24-2012, 05:24 PM   #1
seqfast
Member
 
Location: SF Bay Area

Join Date: Aug 2008
Posts: 16
Default 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
seqfast is offline   Reply With Quote
Old 01-03-2013, 04:00 PM   #2
griffon42
Member
 
Location: New York

Join Date: Jan 2009
Posts: 23
Default 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.
griffon42 is offline   Reply With Quote
Old 01-04-2013, 06:22 AM   #3
krespim
Member
 
Location: Dresden

Join Date: Jul 2012
Posts: 49
Default

I am not sure if I understood your question correctly, but have you tried to change the theme of the ggplot session?
http://sape.inf.usi.ch/quick-reference/ggplot2/themes

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.
krespim is offline   Reply With Quote
Old 02-03-2016, 08:58 AM   #4
TPH
Member
 
Location: USA

Join Date: Jan 2016
Posts: 19
Default

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
TPH is offline   Reply With Quote
Old 08-08-2016, 02:50 AM   #5
AmitChaurasia
Member
 
Location: Delhi, INDIA

Join Date: Jan 2013
Posts: 12
Default

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,

Quote:
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
AmitChaurasia is offline   Reply With Quote
Old 08-12-2016, 03:10 AM   #6
Thias
Member
 
Location: Münster, Germany

Join Date: Mar 2013
Posts: 42
Default

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 at 03:13 AM.
Thias is offline   Reply With Quote
Old 08-13-2016, 03:23 AM   #7
AmitChaurasia
Member
 
Location: Delhi, INDIA

Join Date: Jan 2013
Posts: 12
Default

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

Best,
Amit
AmitChaurasia is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 01:27 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO