Question Details

No question body available.

Tags

r ggplot2 plot facet-wrap

Answers (1)

April 24, 2026 Score: 2 Rep: 35,436 Quality: Low Completeness: 50%

You have both the panel border and axis defined:

axis.line        = elementline(colour = "black"),
panel.border     = elementrect(colour = "black", fill = NA, linewidth = 0.6),

Only the left plots have the axis lines since facetwrap2 only draws the axes at the outer margins by default.

Just change to this in your theme:

axis.line = elementblank(),

Here is the result (I also added axis.ticks.y = element_line(linewidth = 0.25) to make the axis ticks more in line with the panel border):