Graphics Reference
In-Depth Information
# Hide the vertical grid lines (which intersect with the x-axis)
p
+
theme(panel.grid.major.x
=
element_blank(),
panel.grid.minor.x
=
element_blank())
# Hide the horizontal grid lines (which intersect with the y-axis)
p
+
theme(panel.grid.major.y
=
element_blank(),
panel.grid.minor.y
=
element_blank())