Help with Volcano plot

0

Hi,
I am having difficulty in plotting the volcano plot. I used ggplot to plot the graph, but my graph is blank at the center across Log2Fc=0. I am not able to understand why there is no dots at centre whereI do have some genes being expressed in this region. Please do help.

enter image description here

threshold_OE <- As.response$p_val < 0.05
As.response$threshold <- threshold_OE
P24 <- ggplot(As.response) +
  geom_point(aes(x=avg_log2FC, y=-log10(p_val), color = threshold)) +
  ggtitle("Astrocyte response") +
  xlab("log2 fold change") + 
  ylab("-log10 p-value") +
  #scale_y_continuous(limits = c(0,50)) +
  theme(legend.position = "none",
        plot.title = element_text(size = rel(1.5), hjust = 0.5),
        axis.title = element_text(size = rel(1.25))) 
P25 <- LabelPoints(plot = P24, points = genes.to.label.As.new, xnudge = 0, ynudge = 0, repel = TRUE)


Volcano


r


plot


ggplot

• 85 views


Login
before adding your answer.



Source link