ggbreak icon indicating copy to clipboard operation
ggbreak copied to clipboard

incompatible for group using position_dodge

Open gnilihzeux opened this issue 10 months ago • 0 comments

image

My data exon_number_in_each_isoform.frequency.txt

My code

ggplot(is_exon_freq_stat, aes(x = exon_number, y = freq, fill = isof_category)) +
  geom_bar(stat = "identity", position = position_dodge(), width = 0.5) +
  theme_classic() +
  scale_fill_manual(values = c("#00AFBB", "#E7B800", "#FC4E07")) +
  xlab("Exon number in each isoform") +
  ylab("Frequency Ratio") +
  theme(axis.title = element_text(size = 20),
        axis.text = element_text(size = 16),
        axis.text.x = element_text(angle = 25, vjust = 1.1, hjust = 1),
        legend.title = element_text(size = 15),
        legend.text = element_text(size = 12)) +
  scale_y_break(breaks = c(5000, 10000), scales = 0.5)

gnilihzeux avatar Apr 12 '24 02:04 gnilihzeux