Question Details

No question body available.

Tags

r ggplot2 colors line-plot

Answers (1)

Accepted Answer Available
Accepted Answer
February 13, 2026 Score: 2 Rep: 34,518 Quality: High Completeness: 80%

We can control the plotting order by converting ID to a factor, then mapping ID to color and linewidth aesthetics. This way we can have CHM13 as a thick red line behind the grayscale samples.

library(ggh4x)
library(scico)
library(scales)
library(ggplot2)
library(paletteer)
library(elementalist)

hprcy2m2$ID