0

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>)
Ronak Shah
  • 377,200
  • 20
  • 156
  • 213
Our
  • 986
  • 12
  • 22
  • Hi, OP. Please, provide a dataset that can be used to create a [reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) Also, it's not exactly clear from your question what you are trying to accomplish and where your having difficulty. – chemdork123 Mar 22 '21 at 22:30
  • @chemdork123 I hope it is more clear now – Our Mar 23 '21 at 00:14

0 Answers0