Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about ggMAplot #617

Open
AsudeBerber opened this issue Oct 18, 2024 · 0 comments
Open

about ggMAplot #617

AsudeBerber opened this issue Oct 18, 2024 · 0 comments

Comments

@AsudeBerber
Copy link

Why my ggMAplot doesn't look like in the example ?
image

Example:
image

How can I start the x axis from 0 ?

#mycode
MAplot_result_2_LFC <- ggmaplot(result_2_LFC_filtered, main = expression("MA plot of conf100_KD vs conf100_control"), 
                              fdr = 0.05, #false discovery rate)
                              fc = 1,
                              alpha = 0.5,
                              seed = 42,
                              genenames = as.vector(result_2_LFC_filtered_geneid$external_gene_name), 
                              size = 0.4,
                              palette = c("#B31B21", "#1465AC", "darkgray"),
                              font.label = c("bold", 11), label.rectangle = TRUE,
                              font.legend = "bold",
                              font.main = "bold",
                              legend = "top", top = 10,
                              select.top.method = c("padj", "fc"),
                              ggtheme = ggplot2::theme_minimal()) +
  scale_y_continuous(breaks = seq(-10, 10, by = 4),  # Custom breaks:
                     limits = c(-10, 10))  # Set y-axis range from -10 to 10

session_info()

# please paste here the result of
devtools::session_info()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant