Skip to content
Snippets Groups Projects
Commit 1a782ccf authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix xy plot

parent 48798284
No related branches found
No related tags found
No related merge requests found
library('gplots')
library('ggplot2')
library('reshape2')
......@@ -6,24 +5,14 @@ args <- commandArgs(TRUE)
inputArg <- args[1]
outputArg <- args[2]
print(inputArg)
print(outputArg)
tsv<-read.table(inputArg, header = 1, sep= '\t', stringsAsFactors = F)
print(inputArg)
print(outputArg)
data <- melt(tsv)
#colnames(data) <- c("x", "sample", "value")
data$X <- as.numeric(data$X)
data <- na.omit(data)
data <- data[data$value > 0,]
print(inputArg)
print(outputArg)
print("Starting to plot")
png(file = outputArg, width = 1500, height = 1500)
ggplot(data, aes(x=X, y=value, color=variable, group=variable)) + geom_line()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment