Reputation: 1035
Building on this earlier question, let's say the data table has columns ID,factor,SimulationID,Data
. During the plotting, we want to plot a new graph. for each (factor, SimulationID)
tuple using facet_grid()
. And for each of these plots, we will use ID
varialbe to connect to Data
points as a line. However, the set of unique ID
values in for each (factor, SimulationID)
tuple are different from each other.
Now, What I want is to highlight one of the curves in each of these plots separated by facet_grid()
.
ggplot(d) +
facet_grid(factor~SimulationID,)+
geom_line(aes(idx, value, colour = type)) +
gghighlight(ID == <choose a valid ID randomly>)
Upvotes: 0
Views: 54