cummeRbund change point size in volcano plot
1
2
Entering edit mode
ianmisner17 ▴ 20
@ianmisner17-7131
Last seen 6.8 years ago
United States

Hello,

I’m working with cummeRbund in R 3.1.1 and I’m trying to get a different point size for my csVolcano plot. I’ve tried two approaches an neither see to work.

after loading library and the data as

library(cummeRbund)

cuff <- readCufflinks(“diff_out”)

1)use the mapping setting for the csVoclano function

v <- csVolcano(genes(cuff), “EP”, “PC”, showSignificant=TRUE, alpha=0.05, mapping=aes(size=5))

When I view this the point size stays a the default settings.

2) Alter the ggplot2 information after creating the plot

t <- v + geom_point(aes(size = 2))

This produces an error saying that “geom_point requires the following missing aesthetics: x, y

if I provide those labels the points still don’t change

t <- v + geom_point(aes(x=log10 y=log2 size =2))

Using method two with csScatter works great and the points change size.

What am I missing?

 

cummerbund ggplot2 size r volcanoplot • 3.1k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

Try this:

v+geom_point(aes(x=log2_fold_change, y = -log10(p_value), color = significant), size=2)
ADD COMMENT
0
Entering edit mode

When I try this I get another error

Error in eval(expr, envir, enclos) : object 'log2_fold_change' not found

if I put the x and y values in quotes I then receive a different error:

Error: Discrete value supplied to continuous scale 
ADD REPLY

Login before adding your answer.

Traffic: 468 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6