Irakli
September 30, 2020, 8:17am
1
How can I make a facetted spaghetti chart that retains all the lines, highlighting only the line that represents a given facet?
I am creating this chart and I want to show all the data on each facet only highlighting a single city.
Any help would be appreciated.
mara
September 30, 2020, 2:31pm
2
Take a look at the gghighlight package, which allows you to facet wrap by a variable, and then have that variable highlighted in the facet itself.
gghighlight
1 Like
Irakli
October 4, 2020, 12:02pm
3
Thank you for the answer. I did that right after asking this question and it worked perfectly. So anyone who might have the same question, highlighting a group variable can highlight each category on a separate facet. Just follow the simple gghighlight tutorial.
mara
October 5, 2020, 12:48pm
4
If your question's been answered (even if by you), would you mind choosing a solution? (See FAQ below for how).
Having questions checked as resolved makes it a bit easier to navigate the site visually and see which threads still need help.
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
Thanks
1 Like
system
Closed
October 12, 2020, 12:48pm
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.