# SCI Figure Hub — 4-Year Research Grant Gantt Schedule (CC0-1.0) library(ggplot2) pal <- c("#1D4E89", "#00A087", "#3C5488", "#E64B35", "#F39B7F") df <- data.frame( task = factor(c("WP1: Synthesis", "WP2: Characterization", "WP3: Operando", "WP4: DFT Model", "WP5: Full-Cell", "WP6: Publications"), levels = rev(c("WP1: Synthesis", "WP2: Characterization", "WP3: Operando", "WP4: DFT Model", "WP5: Full-Cell", "WP6: Publications"))), start = c(0.0, 0.7, 1.4, 1.8, 2.5, 3.2), end = c(1.3, 2.1, 2.9, 3.4, 3.8, 4.0), phase = factor(c("P1", "P2", "P3", "P3", "P4", "P5")) ) p <- ggplot(df) + geom_segment(aes(x = start, xend = end, y = task, yend = task, colour = phase), linewidth = 6, lineend = "butt") + geom_point(aes(x = end - 0.05, y = task), shape = 23, size = 2.6, fill = "#FFFFFF", colour = "#121C26") + scale_colour_manual(values = pal) + scale_x_continuous(breaks = 0:4, labels = c("Y1", "Y2", "Y3", "Y4", "End")) + labs(x = "Project Timeline", y = NULL) + theme_classic(base_size = 8) + theme(legend.position = "none", panel.grid.major.x = element_line(linetype = "dashed", colour = "#CBD5E1")) ggsave("nsfc_research_gantt.pdf", p, width = 160, height = 70, units = "mm")