Skip to content

Commit

Permalink
added R script for exercise 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ahryhorzhevska authored Apr 11, 2022
1 parent dad4a63 commit 031f10a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions plot.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
library(ggplot2)

gene <- read.csv2(snakemake@input[[1]], dec = ",")
colnames(gene) <- "id"
gene$id <- as.numeric(gene$id)

print(paste0("I'm plotting the file ", snakemake@wildcards[["file"]]))

pdf(file = snakemake@output[[1]])

ggplot(gene, aes(x = id)) +
geom_density(alpha = .2, fill = "#FF6666") +
ggtitle(paste0("Plot "), snakemake@wildcards[["file"]])

dev.off()

0 comments on commit 031f10a

Please sign in to comment.