Skip to content
Snippets Groups Projects
Verified Commit 96eb4d6e authored by Mia Croiset's avatar Mia Croiset
Browse files

add saving plot in file

parent 38a69aef
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,8 @@ df$file <- filenames ...@@ -79,6 +79,8 @@ df$file <- filenames
important_processes <- c(15, 16, 17, 18, 7, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,9,1,2,5,6,1,1,1,1,1,15,11,1,1,1,1,12,1,1,1,1,1) important_processes <- c(15, 16, 17, 18, 7, 1, 1, 1, 1, 1, 1, 1, 1,1,1,1,1,9,1,2,5,6,1,1,1,1,1,15,11,1,1,1,1,12,1,1,1,1,1)
pdf("process_time.pdf")
ggplot(df, aes(x = name, y = duration_minutes)) + ggplot(df, aes(x = name, y = duration_minutes)) +
geom_point(aes(color = name, shape = name)) + geom_point(aes(color = name, shape = name)) +
scale_shape_manual(values = important_processes) + scale_shape_manual(values = important_processes) +
...@@ -86,7 +88,8 @@ ggplot(df, aes(x = name, y = duration_minutes)) + ...@@ -86,7 +88,8 @@ ggplot(df, aes(x = name, y = duration_minutes)) +
scale_y_continuous(breaks = seq(0, 490, by = 30)) + scale_y_continuous(breaks = seq(0, 490, by = 30)) +
xlab("Processes") + xlab("Processes") +
ylab("Duration in minutes") + ylab("Duration in minutes") +
theme(axis.text.x=element_blank(), axis.ticks.x=element_blank()) theme(axis.text.x=element_blank(), axis.ticks.x=element_blank()) +
ggtitle("Duration time of each process")
ggplot(df, aes(x = name, y = realtime_minutes)) + ggplot(df, aes(x = name, y = realtime_minutes)) +
geom_point(aes(color = name, shape = name)) + geom_point(aes(color = name, shape = name)) +
...@@ -95,5 +98,8 @@ ggplot(df, aes(x = name, y = realtime_minutes)) + ...@@ -95,5 +98,8 @@ ggplot(df, aes(x = name, y = realtime_minutes)) +
scale_y_continuous(breaks = seq(0, 490, by = 30)) + scale_y_continuous(breaks = seq(0, 490, by = 30)) +
xlab("Processes") + xlab("Processes") +
ylab("Duration in minutes") + ylab("Duration in minutes") +
theme(axis.text.x=element_blank(), axis.ticks.x=element_blank()) theme(axis.text.x=element_blank(), axis.ticks.x=element_blank())+
ggtitle("Real execution time of each process")
dev.off()
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