Created
December 29, 2021 10:42
-
-
Save SirmaXX/0253abeae8b840a009c02b2cd9a1662a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(reshape2) | |
library(ggplot2) | |
#yapılacak işler/görevler | |
tasks <- c("Literatür taraması", "Veri toplanması", "Veri Analizi", "Rapor ve veri görselleştirmesi") | |
#görevlerimizi bir dataframe'a aktarıyoruz | |
dfr <- data.frame( | |
name = factor(tasks, levels = tasks), | |
start.date = as.Date(c("2010-08-24", "2010-10-31", "2010-11-01", "2011-02-14")), | |
end.date = as.Date(c("2010-10-31", "2010-12-14", "2011-02-28", "2011-04-30")), | |
is.critical = c(TRUE, FALSE, FALSE, TRUE) | |
) | |
#melt | |
mdfr <- melt(dfr, measure.vars = c("start.date", "end.date")) | |
ggplot(mdfr, aes(value, name, colour = is.critical)) + | |
geom_line(size = 6) + | |
xlab("aylar") + | |
ylab("görevler") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment