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

a volcano plot example #3

Open
raynamharris opened this issue May 19, 2022 · 0 comments
Open

a volcano plot example #3

raynamharris opened this issue May 19, 2022 · 0 comments
Labels
ggplot2 ggplot2 functions rstats R

Comments

@raynamharris
Copy link
Contributor

A volcano plot example example

# set working directory to `training-rstudio-binder/GTEx/`
# install.packages("ggplot2")
library(ggplot2)

results <- read.table("./data/GTEx_Heart_20-29_vs_50-59.tsv")

ggplot(results, aes(x = logFC, y = -log10(adj.P.Val))) +
  geom_point(aes(color = ifelse( adj.P.Val < 0.05, "p < 0.05", "NS"))) +
  geom_hline(yintercept = -log10(0.05))  +
  theme(legend.position = "bottom") +
  labs(color = "20-29 vs 50-59 year olds", 
       subtitle = "Heart Tissue Gene Expression")

@raynamharris raynamharris added rstats R ggplot2 ggplot2 functions labels May 19, 2022
@raynamharris raynamharris changed the title an volcano plot example a volcano plot example May 19, 2022
@raynamharris raynamharris added example An example for ribbity and removed example An example for ribbity labels May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggplot2 ggplot2 functions rstats R
Projects
None yet
Development

No branches or pull requests

1 participant