ggplots gives errors
1
0
Entering edit mode
ucheuna • 0
@ucheuna-13644
Last seen 7.3 years ago
Hey Mike, while following the time course experiments vignette, I continue to get an error when I use the code below: 
fiss <- plotCounts(ddsTC, which.min(resTC$padj), 
                   intgroup = c("minute","strain"), returnData = TRUE)
ggplot(fiss,
  aes(x = as.numeric(minute), y = count, color = strain, group = strain)) + 
  geom_point() + geom_smooth(se = FALSE, method = "loess") + scale_y_log10()

The error says: Error: could not find function "geom_point"

I intend to plot gene expression changes over time between wild type and knockout mice. This is a follow-up from yesterday's post. Thanks for your help.

 

rnaseq ggplot2 • 1.6k views
ADD COMMENT
0
Entering edit mode

Probably a space issue. as @Matthias Z mentioned. I tried and its working fine. Maybe suggestion of representing the strain and minute in different shape and color.

geom_point(aes(color = strain, shape = minute))

Hope it helps!!

ADD REPLY
0
Entering edit mode
Matthias Z. ▴ 20
@matthias-z-8768
Last seen 7.3 years ago
University Medical Center of Münster, G…

Can you please post your

sessionInfo()

output? Because an improperly attached ggplot2 would be the most obvious reason. In case you copy and pasted above code you might also want to check, whether there is an irrgeular newline between )) +  and geom_point(), which could cause the trouble, too.

ADD COMMENT

Login before adding your answer.

Traffic: 583 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