Skip to content

Commit d9981b1

Browse files
committed
refine ticks in read plots
1 parent 0f1fa1c commit d9981b1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rules/5_visualization/scripts/raw_to_processed_reads_plot.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ theme_set(theme_bw())
6767
ggtitle(paste("Reads counts overall")) +
6868
scale_x_discrete(drop = TRUE) + # Keep all groups, included the ones with values. Alternative : (drop = FALSE)
6969
scale_y_continuous(labels = scales::comma, limits = c(0,smax)) +
70-
theme(axis.text.x = element_text(angle = 90, hjust = 1)) #+
70+
theme(axis.text.x = element_text(angle = 90, vjust=0.5, size = 7)) #+
7171
# guides(fill=guide_legend(title=filling_column))
7272

7373

7474
### Save it
75-
ggsave(overall_reads_barplot, filename = reads_plot_with_filtered, width = 10, height = 5)
75+
w <- 7 + 0.07 * (length(unique(raw_to_filtered_reads_stats[[x_axis_column]])))
76+
ggsave(overall_reads_barplot, filename = reads_plot_with_filtered, width = w, height = 5)

0 commit comments

Comments
 (0)