file.path <- system.file("extdata", "TCRB_sequencing", package = "LymphoSeq")
file.list <- readImmunoSeq(path = file.path)
lorenzCurve(samples = names(file.list), list = file.list)
productive.aa <- productiveSeq(file.list = file.list, aggregate = "aminoAcid")
lorenzCurve(samples = names(productive.aa), list = productive.aa)
# Change the legend labels, line colors, and add a title
samples <- c("TCRB_Day0_Unsorted", "TCRB_Day32_Unsorted",
"TCRB_Day83_Unsorted", "TCRB_Day949_Unsorted", "TCRB_Day1320_Unsorted")
lorenz.curve <- lorenzCurve(samples = samples, list = productive.aa)
labels <- c("Day 0", "Day 32", "Day 83", "Day 949", "Day 1320")
colors <- c("navyblue", "red", "darkgreen", "orange", "purple")
lorenz.curve + ggplot2::scale_color_manual(name = "Samples", breaks = samples,
labels = labels, values = colors) + ggplot2::ggtitle("Figure Title")
Run the code above in your browser using DataLab