Relative Content

Tag Archive for ggplot2geom-barfacet-wrapline-plotpatchwork

Draw lines connecting individual data points in grouped bar plot – ggplot

I have a grouped bar plot (two conditions with two groups in each). I am not having trouble creating the group bar plots, but I am interested in putting individual data points on the plot and connecting them with a line. More specifically, the lines should be connected within conditions, so the data point from condition 1 group 1 connects to the corresponding data point in condition 1 group 2. I cannot find a way to do this without using facet_wrap.