ROIpad ← Back to Search
stackoverflow › answer

Answer to: Highlight all values from single column

Score: 2
Answered: Jan 28, 2026
User Rep: 34,090
library(ggplot2) library(gghighlight) df |> tidyr::pivot_longer(!Indiv) |> ggplot(aes(x = Indiv, y = value)) + geom_point(aes(group=name, color = name), size = 2) + gghighlight(name == "gene1", use_direct_label = FALSE, use_group_by = FALSE, unhighlighted_params = list(color = "black")) + theme_bw() + theme(legend.title = element_blank()) Created on 2026-01-28 with reprex v2.1.1
r ggplot2 gghighlight
View Question ↗
Question
Parent Entity
Score: 4 • Views: 66
Site: stackoverflow