Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit ae63f82

Browse files
committed
Minor clean-up in the scatter hits plot.
1 parent 812a10c commit ae63f82

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
-387 Bytes
Loading

docs/plots/plotHitsAccessionProteoform.R

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,16 @@ scatter.plot <- ggplot() +
4242
scale_color_gradient(low="gray", high="black") +
4343
geom_hline(yintercept=medianProteoformLog, linetype="dashed", color = "green3") +
4444
geom_vline(xintercept=medianAccessionLog, linetype="dashed", color = "blue3") +
45-
scale_x_continuous(name = "Accession", breaks = 0:2, labels = 10^(0:2)) +
46-
scale_y_continuous(name = "Proteoform", breaks = 0:2, labels = 10^(0:2)) +
45+
scale_x_continuous(name = "Accession", breaks = c(medianAccessionLog, 0:2), labels = c(10^medianAccessionLog, 10^(0:2))) +
46+
scale_y_continuous(name = "Proteoform", breaks = c(medianProteoformLog, 0:2), labels = c(10^medianProteoformLog, 10^(0:2))) +
4747
theme_bw(base_size = 11) +
4848
theme(legend.position = "none",
49-
axis.text.x = element_text(angle = 90, hjust = 1 ,vjust = 0.5))
49+
axis.text.x = element_text(angle = 90, hjust = 1, vjust = 0.5, color = c("blue3", rep("black", 3))),
50+
axis.ticks.x = element_line(color = c("blue3", rep("black", 3))),
51+
axis.text.y = element_text(color = c("green3", rep("black", 3))),
52+
axis.ticks.y = element_line(color = c("green3", rep("black", 3))),
53+
panel.grid.major = element_line(color = c(NA, rep("grey95", 3))),
54+
panel.grid.minor = element_blank())
5055
scatter.grob <- ggplotGrob(scatter.plot)
5156

5257
yMax <- max(density(hits$ByAccessionLog)$y)

0 commit comments

Comments
 (0)