Answer to: Highlight all values from single column
Score: 2
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
View Question ↗
Question
SaaS Metrics