You had a couple of typos in your code. Here is a modified version
that adds some color saturation, changes the default theme to B-W and
modifies the axis labels to subscript the log bases. Delete the
theme_bw() line to get the original theme back, and remove the
scale_colour_manual() line to retrieve the original color set.
volcano_data = read.table("Volcano plot2.txt", header = TRUE, sep = "")
volcano_data <- transform(volcano_data,
threshold = as.factor(abs(volcano_data$Log2) > 1 & volcano_data$Logo > 1.2)
##Construct the plot object
g=ggplot(data=volcano_data, aes(x=Log2, y=Logo, colour= threshold)) +
theme_bw() +
geom_point(alpha=0.4, size=1.75) +
theme(legend.position = "none") +
xlim(c(-4, 4)) + ylim(c(0, 5)) +
xlab(expression(log[2]~"fold change")) +
ylab(expression(-log[10]~"p-value")) +
scale_colour_manual(values = c("firebrick", "navy"))
g
Dennis